Yes - but then obviously you have to do something with the array of byte values that function returns - even if it's only printing them to a log file.
edit: also - you just filed that bug? I'd avoid doing that on people's GitHub - especially Google's one. Just upload the screenshot to the forum :)
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) });
@Pzr0 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.
Yes - but then obviously you have to do something with the array of byte values that function returns - even if it's only printing them to a log file.
edit: also - you just filed that bug? I'd avoid doing that on people's GitHub - especially Google's one. Just upload the screenshot to the forum :)