skip to content
Notes && Anecdotes

Sending and receiving JSON over Bluetooth

bluetooth iot javascript json

I’m new to the whole Bluetooth communication game, but in my case I’ve run into having to communicate using 8-bit usigned integer arrays (I’ve used Cordova libraries to communicate with Arduino chips).

In order to do this I’ve had to convert from and to JSON structures on the Cordova side. I’ve done this with the two methods here. On the Arduino side i use bblanchon’s ArduinoJson

Edit: In the end, I ended up the JSON-communication. Now I communicate with simple 8-bit integers instead. It’s arguably simpler.