You are reading a single comment by @billsalt and its replies.
Click here to read the full conversation.
-
Thanks @Gordon. It appears that the 0x prefix was causing the crash. I'm using 1v92.21.
Now I'm on to another issue; my device doesn't advertise services since it is a connectable iBeacon, so I'm going to have to find it using the beacon info, connect and then check for services (I believe), right?
I'll fix that example code...
Are you using up to date firmware? You can check
process.version
and see if it's 1v92 or not. That may help with disconnect?The one thing I notice you're doing differently is your characteristic is
0xbbc21525-008e-fe6b-28ee-d6a44f9cb5da
and notbbc21525-008e-fe6b-28ee-d6a44f9cb5da
- so you prepended a0x
to it.That shouldn't cause a crash (I'll check) but it's unlikely to work :)
edit: just tested and
"0x...."
will give you aError: UUID not the right length (16 or 2 bytes)
message, not a crash