cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Issue with escape quote

lguagneli84
7-Bedrock

Issue with escape quote

Goodmorning,

we are started to work with Thingworx and Azure using MQTT. 

We have some remote properties that will contain data from the devices, and some others in addition to the twinDesired that the device will need to read.

These two properties should be string (in screenshot pkc_1 and pkc_2) 

The problem is that when we try to retrieve data from device, property appers with escaped 

 

{\"pkc_1\":\"0,19-02-11 16:56:00\"}

 

Is there something on twx side we can do to avoid to escape it or this will be send always in this way and we can only parse on device side (low level)

 

Thank you

5 REPLIES 5
slangley
23-Emerald II
(To:lguagneli84)

Hi @lguagneli84.

 

When you retrieve the data, which field in your screenshot should contain the string?  We need to know where the data you're showing is being sent.

 

Regards.

 

--Sharon

The field pkc_1 will contains some string that remote device should read. Thing and device (a remote device) are connected through mqtt. Remote device is able to read field pkc_1 as topic.

slangley
23-Emerald II
(To:lguagneli84)

Hi @lguagneli84.

 

We're still not clear.  What property are you seeing this on: 

 

{\"pkc_1\":\"0,19-02-11 16:56:00\"}

 

We suspect there could be a type conversion that is causing this, so we need to understand where you're seeing it.

 

Regards.

 

--Sharon

gnandyala
13-Aquamarine
(To:lguagneli84)

Hi lguagneli84,

 

I understand you are getting telemetary data from azure.

 

You can pass this to Thingworx property with base type as json object and try.

 

Thank you,

slangley
23-Emerald II
(To:gnandyala)

Hi @lguagneli84.

 

If the solution provided by @gnandyala answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.  If you have found a different solution, please feel free to post it here and mark that as the Accepted Solution.

 

Regards.

 

--Sharon

Top Tags