You could try setting minInterval to 7.5 and maxInterval to 4000 to give it the max leeway in negotiating speed?
Not sure what else to suggest without having one here to play with I'm afraid. If you're feeling like diving in then I have an nRF52DK then Nordic have some tools to let you use it with Wireshark to snoop on Bluetooth LE traffic though
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.
I thought that might be the issue so I looked at the code, and the string should have worked (https://github.com/espruino/Espruino/blob/master/libs/bluetooth/bluetooth_utils.c#L140)
Yes, that's what
c.startNotifications()
should be doing under the hood. It finds the descriptor and writes to it to enable the notification.Are you still getting randomly disconnected? It's possible it is because Espruino and the device can't agree on a connection interval.
NRF.connect
accepts a second argument ofoptions
which corresponds to: http://www.espruino.com/Reference#l_BluetoothRemoteGATTServer_connectYou could try setting minInterval to 7.5 and maxInterval to 4000 to give it the max leeway in negotiating speed?
Not sure what else to suggest without having one here to play with I'm afraid. If you're feeling like diving in then I have an nRF52DK then Nordic have some tools to let you use it with Wireshark to snoop on Bluetooth LE traffic though