-
-
Notifications
You must be signed in to change notification settings - Fork 283
Closed
Description
When trying the peripheral explorer example, I removed the delay(1000);
statement inside the exploreCharacteristic
as it was not in the original sample sketch we provided. When this was done the characteristic values were not printed to the Serial Monitor:
Before:
BLE Central - Peripheral Explorer
Found C8:69:CD:41:84:A2 ''
Found E4:1E:14:D2:31:E7 ''
Found AC:BC:32:7C:FA:26 'test1' ffffffff-ffff-ffff-ffff-fffffffffff0
Connecting ...
Connected
Discovering attributes ...
Attributes discovered
Device name:
Service 1800
Service 1801
Service 180a
Characteristic 2a29, properties 0x2, value 0x4170706C6520496E63
Characteristic 2a24, properties 0x2, value 0x4D6163426F6F6B50726F31322C31
Service d0611e78-bbb4-4591-a5f8-487910ae4366
Characteristic 0000, properties 0x24
Service ffffffff-ffff-ffff-ffff-fffffffffff0
Characteristic 0000, properties 0x2, value 0x76616C7565
Characteristic 0000, properties 0x2, value 0x64796E616D69632076616C7565
Characteristic 0000, properties 0x2, value 0x000102030405060708090A0B0C0D0E0F10111213
Characteristic 0000, properties 0x12
Characteristic 0000, properties 0x16
Characteristic 0000, properties 0x32
Disconnecting ...
Disconnected
After removing delay
:
BLE Central - Peripheral Explorer
Found E4:1E:14:D2:31:E7 ''
Found C8:69:CD:41:84:A2 ''
Found C8:69:CD:41:84:A2 ''
Found AC:BC:32:7C:FA:26 'test1' ffffffff-ffff-ffff-ffff-fffffffffff0
Connecting ...
Connected
Discovering attributes ...
Attributes discovered
Device name:
Service 1800
Service 1801
Service 180a
Characteristic 2a29, properties 0x2
Characteristic 2a24, properties 0x2
Service d0611e78-bbb4-4591-a5f8-487910ae4366
Characteristic 0000, properties 0x24
Service ffffffff-ffff-ffff-ffff-fffffffffff0
Characteristic 0000, properties 0x2
Characteristic 0000, properties 0x2
Characteristic 0000, properties 0x2
Characteristic 0000, properties 0x12
Characteristic 0000, properties 0x16
Characteristic 0000, properties 0x32
Disconnecting ...
Disconnected
Once this is fixed, the delay(1000);
statement should be removed from the sketch.