The plugin allows you to create an obnizOS with your own code.
This class allows you to send and receive data to and from your program running on the device.
onreceive
Receives the binary sequence sent by the plugin.
obniz.plugin.onreceive = (data) => {
console.log(data);
};
send()
obniz.js sends a binary sequence to the plugin.
obniz.plugin.send("obniz.js send data get device?")
obniz.plugin.send([0x00, 0x01, 0x02])