notification

This commit is contained in:
leo 2023-06-25 17:00:26 +02:00
parent d0387adf7d
commit 2d2736315c
Signed by: leo
GPG Key ID: 0DD993BFB2B307DB
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 3c8fd28caa25c77b394be7b0c526d273c224a91f
Subproject commit 2ce2ec0e5a803896c8797eada748f2f98dc1f3fa

View File

@ -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);
@ -169,6 +169,8 @@ void app_main(void){
}
}
simple_gatt_value_server_notify(raw_mv_serve_handle, ADC_IN_PIN_NUM);
vTaskDelay(pdMS_TO_TICKS(CONFIG_UPD_DELAY));
}
}