Hello Gordon, I want to know how I can send commands to my Puck device from my android custom application classes.. Is it "Bluetooth.write("/n")??
If your using Droidscript, this is how I do it to send data to the Puck.
function OnStart(){ ble = app.CreateBluetoothLE(); } function send(){ ble.SendUart("Hello World"); }
Read it on the Puck with.
Bluetooth.on('data', function(d) { data += d; console.log(data) });
@Dan.js 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.
Hello Gordon, I want to know how I can send commands to my Puck device from my android custom application classes.. Is it "Bluetooth.write("/n")??