I have a JSON that containt a key with a value of °F , and when the device receive the JSON, °F is converted to \u00b0F
Problem is, whatever i’m trying to do with this variable in the device, I’ve got the message Syntax error (line xxx): unrecognised escaper char
Its kind of strange since now I have to escape the degrees sign myself in the agent both ways ( agent to device and device to agent) so the transmission between those will not corrupt my message
Well, i’m sending a Json with a key that have the value of “°F” and when the device get it, it is no longer °F i’ve solved my problem, I do remove the degree symbol in the agent before sending it, and I re-add it on the device, its ugly code but its fine
In my experience, device-to-agent and agent-to-device transfers do not perfectly reproduce your data. Blobs are down-converted into strings but are not converted back afterwards. Squirrel allows you to use integers as keys for tables, but they also get converted to strings when passed between agent and device. To avoid all of this (and the problem that you are having), I only use safe strings for keys.