notification
This commit is contained in:
parent
d0387adf7d
commit
2d2736315c
@ -1 +1 @@
|
||||
Subproject commit 3c8fd28caa25c77b394be7b0c526d273c224a91f
|
||||
Subproject commit 2ce2ec0e5a803896c8797eada748f2f98dc1f3fa
|
@ -122,7 +122,7 @@ void app_main(void){
|
||||
.descrL = (NSP_DESC_MAIN>>8) & 0xff,
|
||||
};
|
||||
|
||||
simple_gatt_value_server(raw_mv_meas, sizeof(uint32_t), ADC_IN_PIN_NUM, mv_char_pres_format, &gatt_svcs[RAW_VALUES_SVC_ID], BLE_UUID16_DECLARE(VOLTAGE_CHAR));
|
||||
gatt_value_server_handle_t raw_mv_serve_handle = simple_gatt_value_server(raw_mv_meas, sizeof(uint32_t), ADC_IN_PIN_NUM, mv_char_pres_format, &gatt_svcs[RAW_VALUES_SVC_ID], RAW_VALUES_SVC_ID, BLE_UUID16_DECLARE(VOLTAGE_CHAR));
|
||||
|
||||
set_gatt_services(gatt_svcs, SVCS_NUM);
|
||||
|
||||
@ -168,6 +168,8 @@ void app_main(void){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
simple_gatt_value_server_notify(raw_mv_serve_handle, ADC_IN_PIN_NUM);
|
||||
|
||||
vTaskDelay(pdMS_TO_TICKS(CONFIG_UPD_DELAY));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user