Is there some interplay between setAdvertising and setServices?
Occasionally - when you specify a second argument to setServices for the services you want to advertise (but you're not doing that here so I don't think it's an issue).
Am I using the wrong format for specifying service/characteristic ID?
That all looks good to me.
I'd maybe try using a newer firmware on Puck.js just in case?
I just tried your code here and while /ble/write/puck/0000aaaa00001000800000805f9b34fb/0000aaa000001000800000805f9b34fb doesn't work, /ble/write/puck/aaaa/aaa0 does seem to work great for me.
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,
Occasionally - when you specify a second argument to setServices for the services you want to advertise (but you're not doing that here so I don't think it's an issue).
That all looks good to me.
I'd maybe try using a newer firmware on Puck.js just in case?
I just tried your code here and while
/ble/write/puck/0000aaaa00001000800000805f9b34fb/0000aaa000001000800000805f9b34fb
doesn't work,/ble/write/puck/aaaa/aaa0
does seem to work great for me.