https://redmine.graphics-muse.org/https://redmine.graphics-muse.org/favicon.ico?16278048512016-03-09T23:27:54ZGraphics Muse Issue TrackerIron Man - Action Item #508: Add IoT messaging to PiBox protocolhttps://redmine.graphics-muse.org/issues/508?journal_id=18422016-03-09T23:27:54ZHammelmjhammel@graphics-muse.org
<ul><li><strong>% Done</strong> changed from <i>0</i> to <i>10</i></li></ul><p>Looks like there are JSON APIs in the SDK: <a class="external" href="http://esp8266.ru/download/esp8266-doc/ESP8266_IoT_SDK_Programming%20Guide_v0.9.1.pdf">http://esp8266.ru/download/esp8266-doc/ESP8266_IoT_SDK_Programming%20Guide_v0.9.1.pdf</a>. It's not clear how to call them from the Arduino environment.</p>
<p>There is also this library: <a class="external" href="https://github.com/bblanchon/ArduinoJson">https://github.com/bblanchon/ArduinoJson</a></p>
The way this should work would be:
<ol>
<li>Device registers with piboxd</li>
<li>piboxd asks for config data (in JSON) and stores it</li>
<li>iotapp asks for config data from piboxd</li>
<li>iotapp returns updated json config data to piboxd</li>
<li>piboxd forwards json data to device</li>
</ol>
<p>The format of the JSON data will determine what a field is: numeric, text, etc. That will define how iotapp will display it.</p>
<p>Future support for graphing time-based data will required a thread in iotapp to retrieve data in the background. It will not be piboxd's responsibility to handle time based data.</p> Iron Man - Action Item #508: Add IoT messaging to PiBox protocolhttps://redmine.graphics-muse.org/issues/508?journal_id=18432016-03-10T03:04:18ZHammelmjhammel@graphics-muse.org
<ul></ul><p>That library didn't work. But this one compiles fine:<br /><a class="external" href="https://github.com/interactive-matter/aJson">https://github.com/interactive-matter/aJson</a></p>
<p>So I'm testing that one with IoT code.</p> Iron Man - Action Item #508: Add IoT messaging to PiBox protocolhttps://redmine.graphics-muse.org/issues/508?journal_id=18452016-03-19T23:56:36ZHammelmjhammel@graphics-muse.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>10</i> to <i>100</i></li></ul><p>The protocol design is updated on the wiki.</p>
<p>The protocol is implemented in piboxd and tested with the unit test script (tests/server.sh). It appears to be working fine.</p>
<p>Cod is tested, committed and pushed.</p>
<p>Closing issue.</p>