We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb67c8 commit d8d6792Copy full SHA for d8d6792
libraries/Bluefruit52Lib/examples/custom_hrm/custom_hrm.ino
@@ -134,8 +134,8 @@ void setupHRM(void)
134
// B6:7 = UINT16 - RR Internal (1/1024 second resolution)
135
hrmc.setProperties(CHR_PROPS_NOTIFY);
136
hrmc.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);
137
- hrmc.setMaxLen(2);
138
- hrmc.setCccdWriteCallback(cccd_callback);
+ hrmc.setFixedLen(2);
+ hrmc.setCccdWriteCallback(cccd_callback); // Optionally capture CCCD updates
139
hrmc.start();
140
uint8_t hrmdata[2] = { 0b00000110, 0x40 }; // Set the characteristic to use 8-bit values, with the sensor connected and detected
141
hrmc.notify(hrmdata, 2); // Use .notify instead of .write!
0 commit comments