I am using a RAK8212 and want to implement a simple interactive text menu.
I am connected via BLE.
The text menu could look like this:
Please enter you choice:
1 Do this
2 Do that
You choice>
Bluetooth.read(1) returns immediately.
Bluetooth.on('data', function() {...}) also doesn't work, as the application has no such a thing as a event loop that runs all the time.
Any ideas how to create a interactive text menu in the console?
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.
Hi,
I am using a RAK8212 and want to implement a simple interactive text menu.
I am connected via BLE.
The text menu could look like this:
Bluetooth.read(1) returns immediately.
Bluetooth.on('data', function() {...}) also doesn't work, as the application has no such a thing as a event loop that runs all the time.
Any ideas how to create a interactive text menu in the console?