connect from my android to uart service with nRF UART v2.0
call the function TestConsole in WebIDE
On WebIDE I see
testConsole() // start of function(see function above)**
=undefined
-> Bluetooth // Message from firmware
Ser BT set // Bluetooth is set to console
Ser BT // before setting Serial to be console
// message missing from firmware, that Serial1 is switched back from BT
// message missing from 2nd setTimeout, that serial is set to console
In nRF Uart everything looks like expected
RX: <- Serial1 //message from firmware, console switched from Serial1 to BT
BT set // Bluetooth is set to Console
BT // before switching back to Serial
[J->Serial1 // message from firmware, console switched to Serial
RX: Ser set // message from 2nd setTimeout, console is switched back to Serial1
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.
Now that Bluetooth.print works fine, next step is to test Bluetooth as console.
First step is to write a simple function, which
2.1. set one more timeout
Some prints are added to each step.
Expectation for this function is,
Hopefully the following description is not too confusing
Testing itself is
On WebIDE I see
In nRF Uart everything looks like expected