-
• #2
c[1].writeValue(0x7F); <- can it be should just escape the value? c[1].writeValue('0x7F');
-
• #3
No that's not the problem, because i get the error on line 8 (of the "original" code, the code i posted is the workaround)
return gatt.getPrimaryService("fff6fe25-469d-42bc-9179-b3a093f19032");
-
• #4
Could you try just taking the battery out and re-adding it to your Puck, then trying again?
The nRF52 chip can only have a certain number of long UUIDs in memory at once - and annoyingly I don't think they can be removed once added.
I'll see about increasing the number of usable UUIDs in the next version - that should help a lot. Otherwise it's hard to know what to do - I could add a function that let you explicitly restart the Bluetooth subsystem, but by the time Puck.js has got to getPrimaryService and realises there is not more storage for UUIDs, it's a bit late for it to do a restart automatically :)
Hi all,
since i got my 2 Pucks, i am doing some experiment with BLE devices.
I was tempted and i've bought an Awox BLE Color Bulb, but i'm having problem getting Primary Services.
I am only able to use the first Primary Service "33160fb9-5b27-4e70-b0f8-ff411e3ae078" and its characteristic "217887f8-0af2-4002-9c05-24c9ecf71600", where sending 0 or 1 will turn the bulb off/on.
There are at least 2 other Primary Service (discovered with nRF Connect), 1 for warm light brightness and 1 for RGB lights.
Trying to use one of these, i receive the error on command gatt.PrimaryService("fff6fe25-469d-42bc-9179-b3a093f19032")
If i try gatt.PrimaryServices(), i get this
Actually, yesterday i could correctly see at least the first PrimaryService UUID ("33160fb9-5b27-4e70-b0f8-ff411e3ae078"), so the only way i found to access other services is using gatt.PrimaryServices() and then use the array index of the service i need instead of using for example gatt.PrimaryService("fff6fe25-469d-42bc-9179-b3a093f19032")
This is the portion of the (dirty) code i am using, just for testing purpose
while using gatt.PrimaryService("fff6fe25-469d-42bc-9179-b3a093f19032") or gatt.getCharacteristic("d8da934c-3d8f-4bdf-9230-f61295b69570") are returning me the mentioned error.
Am i doing something wrong?