bluetooth failing when not connected to USB #4236
Replies: 1 comment
-
Posted at 2014-11-24 by @gfwilliams Hi Phil, Yes - it's because the console (the thing that would have been on the left-hand side of the Web IDE) automatically moves to Bluetooth (Serial1) when the board isn't connected to USB (so you can actually program it through bluetooth). All you need to do is put the code With the console put on Bluetooth you can actually send Posted at 2014-11-24 by user49319 Oh I love the idea of sending commands as script to execute :) Yep that got it working. Many thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-11-23 by user49319
Hi
I have a little test script running fone when connected to USB:
If I send messages to the bluetooth connection from an app on my phone, first a string of a float (e.g. '0.1') then post another BT message containing just a comma ',' the servo moves.
I can disconnect from the WebIDE. It still works.
However! If I unplug the USB, I get a BT message back from the board to my phone:
'Console Moved from USB'
Now it fails to work. I send it the float, it echos it back. I send the comma, its sends error:
"Uncaught SyntaxError: Got ',' expected EOF at line 1 col 1
,
^"
Any help appreciated. :)
Phil
Beta Was this translation helpful? Give feedback.
All reactions