void sendI2CNotification(void) is called whenever new I2C data is received; Rewrite the internal logic to set the CyBle_GapSetLocalName() based on the I2C data received. wrBuf is the pointer to the I2C received buffer, and byteCnt is the count of data bytes received. You might need to turn off the BLE radio advertising/connecting/scanning in order to set the local name, but you should be able to determine that yourself :)
Okay, I understand.
But the parameter of GapSetLocalName is a const8 char.
The value of the I²C data is integer datatype.
At the moment I have problems converting this integer value into string/const8 char.
Can you help me at this issue?
1 of 1 people found this helpful
Since it requires a string, you merely need to convert the integer how you want into a character or multiple characters and pass them as a string to the function call.