2024-08-28 03:11 AM - edited 2024-08-28 03:16 AM
Hi,
I want to ask an infomation about how to correctly insert some custom code in the BLE_Custom example project. I would like to modify the code in order to perform some operations to read a sensor connected to the P-NUCLEO-WB55 through I2C and than update a characteristic with the value read by the sensor.
Where is the correct place in the different coding files where to perform reading operation of the sensor ? It is maybe necessary to create a task or it can be put in the main.c while true? Or it sould be inserted in the app_ble.c file where APP_BLE_Key_Button1_Action was put in the example code?
Thank you.
Best