Hi *,
Im currently trying to send data to the cayenne Backend using the existing Cayenne integration in TTN.
Topic is that the Device is not natively sending in CayanneLPP-Format and i have no option to change it!
I’m able to decode the Payload and where trying to convert it to a cayenneLPP Payload, but the converter tells me that he is expecting an Object.
After decoding I have an array with the values like this:
{
“BattState”: 1,
“GPSAltitude”: 380,
“GPSHorizontalAccuracy”: 189.9,
“GPSLatitude”: 48777777,
“GPSLongitude”: 90000000,
}
So my idea was to put this together in on String like:
converted = “0188” + (decoded.GPSLongitude%1000) + (decoded.GPSLatitude%1000) + (decoded.Altitude);
But sure this is not an Object…
…but my question is how to from the Object that cayenne will accept it…
Thanks.
Michael