I would like to upload data from my embedded device (Pycom GPY) to the Hologram cloud service in JSON format. I formatted the data as JSON and suck it in the data field of the Hologram JSON format, like so.
I can run this message simulator and everything works as expected. However, I get a return value of [2,0] when sending the exact same over the socket API from my GPy.
Is there a way to send JSON in the data field of the socket API?
That at least made it to the Hologram Dashboard. Nothing shows up in the “Data” field when looking at it through the web interface. It does show up in the REST API when getting the device messages. I’m not sure why Hologram is formatting the data this way, but at least I have a way to get it.
Nice! glad that worked, also a good idea (although I’m surprised my idea didnt also work, I hope its possible to send strings that look like JSON but may not be JSON and include { and " characters).