Open mathbozzi opened 3 years ago
I ran into the same issue. Any solution available?
Please, try to disconnect the device to all gatways. Or, try to factory reset your device.
@mathbozzi thanks for your reply. I just noticed, that the device immediately gets disconnected after the device.connect() call. That's the reason in my case why the device.gatt() call does not return. I need to further investigate on this.
@rzumbuehl did you find a cause for this issue? I am running into the same problem.
@rzumbuehl did you find a cause for this issue? I am running into the same problem.
As mentioned, the root cause of my problem was that the BLE device closed the connection to the BLE Central (Raspberry PI) immediately after the device.connect() call. This was the reason why device.gatt() call did not return.
@rzumbuehl looks you are using omron's device. Correct? I have the same device. I have similar issue. I can connect to the devices but could not manage to get any data from the notification Services.If you manage to get any data out please share
No, I'm actually using another BLE device (wearable). Sorry, I can't help here.
@rzumbuehl I was curious if you had discovered why the device was closing the connection immediately. I am observing the same behavior.
hello. this theme is actual. i am cant get device.gatt()
.
this code not working too. and this not resolve problem .
try {
this.gattServer = await Promise.race([
device.gatt(),
new Promise((resolve, reject) => setTimeout(() => {
reject('cant get device.gatt()');
}, this.timeout)),
]);
logger.info(`get gatt`);
this.device = device;
} catch (error) {
throw error;
}
has there been any progress on this issue ?
out:
I have trying to connect my blood pressure monitor to extract the data, but in line 19 - (const gattServer = await device.gatt()) doesn't seem to work. The code stay in line 19 and never get the service in line 22. May some one help me? please!