The getPrimaryService never gets fulfilled. Not sure what is going on here? There does not seem to be a way of adding a timeout?
The manufacturer data in the first code block - seems to wrong - as 76 is apple and the previous devices is an apple tv- and in the 2nd block of code - it is undefined for the Tilt - so I'm wondering if the previous values are getting set?
What is data in BluetoothDevice: structure?
Can the device name be included in the BluetoothDevice: structure?
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, a bit of progress. By increasing the scan I now can find the device:
I can connect by service, by adding the timeout of 20000:
The
getPrimaryService
never gets fulfilled. Not sure what is going on here? There does not seem to be a way of adding a timeout?The manufacturer data in the first code block - seems to wrong - as 76 is apple and the previous devices is an apple tv- and in the 2nd block of code - it is undefined for the Tilt - so I'm wondering if the previous values are getting set?
What is data in
BluetoothDevice:
structure?Can the device name be included in the
BluetoothDevice:
structure?