remove the console.log statements from the receiving
In your example code I'd have said that was almost certainly the problem.
Can you run E.getErrorFlags() and see if it says anything? If data has been arriving faster than Espruino can process it, there should be a FIFO_FULL flag.
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.
In your example code I'd have said that was almost certainly the problem.
Can you run
E.getErrorFlags()
and see if it says anything? If data has been arriving faster than Espruino can process it, there should be a FIFO_FULL flag.Could you maybe try using the extra arguments to http://www.espruino.com/Reference#l_BluetoothRemoteGATTServer_connect to force the device to use a lower connection interval, just in case that's the problem?