Skip to main content
16-Pearl
December 4, 2020
Solved

Azure IoTHub complete JSON Data in Thingworx

  • December 4, 2020
  • 3 replies
  • 1609 views

Hi,

 

I have installed and configured Azure IoT Hub connector 3.0.1 in Thingworx version 8.5.1.

 I have added JSON parameters list to IoT Hub device Thing and bind the properties Remotely, Data is getting updated to properties. Where I can see the complete IoT Hub JSON data instead of Parameter wise in Thingworx .Could anyone help me on this?

 

Regards,

Latha

Best answer by nmilleson

@vi1 ,

 

When we sent our message from the device, we did it in the form of:

{
 "message": {
 "property1" : "value",
 "property2" : "value2",
 "property3" : "value3"
 }
}

 

Then we just bound the "message" property to a ThingWorx property.  Hope that helps a bit.

3 replies

nmilleson17-PeridotAnswer
17-Peridot
December 8, 2020

@vi1 ,

 

When we sent our message from the device, we did it in the form of:

{
 "message": {
 "property1" : "value",
 "property2" : "value2",
 "property3" : "value3"
 }
}

 

Then we just bound the "message" property to a ThingWorx property.  Hope that helps a bit.

vi116-PearlAuthor
16-Pearl
December 10, 2020

Hi,

 

Thank you for response.

What you are saying is before sending the device data to Azure IoTHub, we need to give root "message" in JSON. Is it my understanding correct?. Can we add name "message" stating in JSON after receiving into IoT Hub?.

 

I am facing strange issues in Thingworx. If any option to get the complete JSON in Thingworx, that will resolve my problems. The data is sending from multiple devices with the same format of JSON properties . I need to map the data to respective thing based on device identity.

 

Thanks&Regards,

Latha

 

Support
December 21, 2020

Hi @vi1.

 

Since you marked the solution already, it's unclear what remaining issues you have, if any.  Can you clarify the current problem?

 

Regards.

 

--Sharon