|
|
|
|
|
by chrissnell
4512 days ago
|
|
Interesting idea but I would offer an alternative to JSON for device<-->dweet communication. JSON parsing on small embedded processors is often memory- and CPU-prohibitive. A small (preferably binary) protocol is lighter and faster to work with on these little microproccessors. When I built my Lightcube[1], I designed a binary protocol[2] that is easily parsed on the Arduino or even the smaller ATtiny microprocessors. Designing and implementing the protocol was a learning process for me but I ended up with something that didn't tax the CPU, leaving me more processing cycles to interact with my hardware. [1] Lightcube: https://github.com/chrissnell/Lightcube [2] Lightcube protocol: https://github.com/chrissnell/Lightcube#lightcube-protocol |
|