I’m working with the Azure IoT Hub integration, and have my Electron successfully pumping messages through the Particle cloud to my hub.
I’d like to expand on the data I’m sending, to include telemetry properties, and other metadata from code. Right now I see whatever string I send ends up being the “data” property value in the JSON, on the IoT Hub. However it is a quoted string, precluding me from sending in a serialized JSON object as data.
So I saw the “Advanced Settings” section of the integration definition, and see the “SEND CUSTOM JSON” feature, which says I can format my own JSON object. There is a link to “our docs.” which talks about WebHooks.
Ultimately, what’s unclear to me is how I can pass through one or more properties from my code, into this custom JSON structure. The WebHooks documentation seems to imply the JSON object is static and not parameterized by the Particle.publish() method.
Can anyone provide more information on how to use this custom JSON feature of the integration?