I’m following the General API docs to attempt to power on my Sphero Mini by writing to the device’s GATT command characteristic after connecting to it through BLE with an iOS device. However, after writing what I believe is the correct packet for wake (
[0x8d, 0x3e, 0x11, 0x01, 0x13, 0x0d, 0x00, 0x8f, 0xd8]), the Sphero Mini doesn’t light up white and disconnects a few seconds later. I don’t receive a response on the characteristic I wrote to also.
await bleClient.connect(peripheralID); const commandService = '00010001-574f-4f20-5370-6865726f2121'; const commandChar = '00010002-574f-4f20-5370-6865726f2121'; const dfuService = '00020001-574f-4f20-5370-6865726f2121'; const dfuChar = '00020002-574F-4F20-5370-6865726F2121'; await bleClient.startNotification(peripheralID, commandService, commandChar); await bleClient.startNotification(peripheralID, dfuService, dfuChar); const wake = [0x8d, 0x3e, 0x11, 0x01, 0x13, 0x0d, 0x00, 0x8f, 0xd8]; await bleClient.write(peripheralID, service, char, wake); this.log('Wake initiated');
Can anyone correct me on what I’m doing wrong? Any help would be appreciated. (Using the SDK is not an option for me, as I’m connecting with an iOS device and not a Raspberry PI/Arduino/etc.)