View single post by srooks | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Posted: Sunday Apr 10th, 2016 01:54 am |
|
||||||||||||
srooks
|
https://en.m.wikipedia.org/wiki/JSON As JSON is ascii based, for C all you need is sprintf. I've built various embedded systems which support JSON via HTTP REST without needing any external JSON libraries as the data was quite simple. I'm sure you could do the same with Comfort. If the UCM could support REST and JSON via its web server, it would make access very simple from any language. Example REST to get input 1 status GET https://[ucm]/input/1 RETURN { status: "on" } Example to invoke a response POST https://[ucm]/response/23 Example REST to get a counter GET https://[ucm]/counter/3 RETURN { value: "25" }
|
||||||||||||
|