On the JS side, you could do something like:
var names = ["foo","bar","..."]; var obj = {} names.forEach(function(n,i) { obj[n] = parseInt(rcv.substr(8*i,8),2); });
could be a really neat tidy way of making an object with your data?
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
On the JS side, you could do something like:
could be a really neat tidy way of making an object with your data?