What you want to do is sending P0 value through UUID_HELLO_CHARACTERISTIC_NOTIFY?
If yes, please modify your code as below.
db_pdu.pdu[0x00] = (UINT8)res; // Added
bleprofile_WriteHandle(HANDLE_HELLO_SENSOR_VALUE_NOTIFY, &db_pdu); // Added
ble_tracen((char *)db_pdu.pdu, db_pdu.len);
Then the first byte of "Hello" will be changed to 0 or 1.
1 of 1 people found this helpful
thank you for replying!
It was able to work as what I was aiming.
I really appreciate your support.
Thank you so much.