Send Json on arduino smartShield ? API's location?


(ValAiRian) #1

Hi Everyone,

I’m trying to build a device using the arduino smartShield and I’d like to send from the hub to the arduino several variables. To do that I need to send a Json but I didn’t find any information on how to do it. I don’t really want to build my own parsing method on the arduino but if it’s the only way, I’l probably do it :wink:

The only command we have to send something is zigbee.smartShield(text: YourData).format().

I’d like to know if it’s possible to send somethings different than a “text”. In addition to that, does anyone knows where to find the smartthing Zigbee API and the physicalGraph class ?

Thank you !

ValAIRian1


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #2

JSON is text (that’s rather the point of JSON… It serializes objects).

I wouldn’t be surprised if you can easily find some JSON parsing libraries for Arduino… it’s just C++.