it can be done two ways.
NRF.on('disconnect', my_reconnect_fun);
using interval like 10s
for interval approach my_reconnect_fun() should include checking connection, like if(!gatt.connected)...
@Mark_M 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.
it can be done two ways.
NRF.on('disconnect', my_reconnect_fun);
using interval like 10s
for interval approach my_reconnect_fun() should include checking connection, like if(!gatt.connected)...