Hey all,
I am working on a little program that will let me use my Puck gen 1 as a remote control for my standing desk.
I found the desk's MAC address through nrf Connect app. The app also shows me the UUIDS for the primary services. However, when I try to get a service or to list the service, the connection times out for me. Here's my code:
var DESK_ADR = "F3:64:25:CF:41:3B random";
NRF.connect(DESK_ADR, {
minInterval: 8, maxInterval: 1999
}).then(function(g) {
console.log('server', g);
console.log('device', g.device);
return g.getPrimaryServices();
}).then((s) => {
console.log(s);
}).catch(function (e) {
console.log(e);
});
The output is the following:
>
____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|____|___| _|_| |___|_|_|_|___|
|_| espruino.com
2v10 (c) 2021 G.Williams
>
server BluetoothRemoteGATTServer: {
"device": BluetoothDevice: {
"id": "F3:64:25:CF:41:3B random",
"gatt": ...
},
"connected": true }
device BluetoothDevice: {
"id": "F3:64:25:CF:41:3B random",
"gatt": BluetoothRemoteGATTServer: {
"device": ... ,
"connected": true }
}
Disconnected
Uncaught InternalError: BLE task completed that wasn't scheduled (SERVICE/NONE)
>
I tried the same code on another Puck that is still running 1.9.1 but it gives me basically the same output.
Does anyone have an idea what could be doing wrong here?
Hey all,
I am working on a little program that will let me use my Puck gen 1 as a remote control for my standing desk.
I found the desk's MAC address through nrf Connect app. The app also shows me the UUIDS for the primary services. However, when I try to get a service or to list the service, the connection times out for me. Here's my code:
The output is the following:
I tried the same code on another Puck that is still running 1.9.1 but it gives me basically the same output.
Does anyone have an idea what could be doing wrong here?