#define UUID16_SVC_HEART_RATE 0x180D
#define UUID16_CHR_HEART_RATE_MEASUREMENT 0x2A37
#define UUID16_CHR_BODY_SENSOR_LOCATION 0x2A38
void cccd_callback(uint16_t chars_uuid, uint8_t * cccd_value)
{
if (chars_uuid == UUID16_CHR_HEART_RATE_MEASUREMENT) {
} else {
return;
}
}
}
void send_callback(uint16_t chars_uuid, uint8_t * send_value)
{
if (chars_uuid == UUID16_CHR_BODY_SENSOR_LOCATION) {
char send_str[4];
sprintf(send_str, "%d", send_value[0]);
}
}
void setup()
{
uint8_t base_uuid[] ={
0x00, 0x00, 0x18, 0x0D, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00,
0x80, 0x5f, 0x9b, 0x34, 0xfb};
Serial.
println(
"------------------------------------------------------");
uint8_t hrmdata[2] = { 0x39, 0x40 };
uint8_t sensor_location = 2;
bslc.
write(&sensor_location);
}
void loop()
{
}