Hello.
I am learning the operation of the "Low Power Temperatures Sensor and Collector" of the "KW36 SDK" with two FREM-KW36 boards.
I studied the "BLE Application Developer's Guide" and the "BLE Demo Applications User's Guide", and also looked through the "KW38 Custom Profile".
After studying various documents, I came to understand a little about the action sequence of the example.
In the "Low Power Temperatures Sensor and Collector" example of 'KW36 SDK', I understood that the "Temp Sensor device" plays the role of Server and the "Temp Collector device" plays the role of Client.
At this time, it was understood that the “Server (Temp Sensor) device” receives requests or commands from the “Client (Temp Collector) device” and measures the temperature accordingly and transmits it to the Client device.
I have a question for you in this process.
- Questions -
When running the example, the "Client (Temp Collector) device" sends commands to the "Server (Temp Sensor) device", and the "Server" measures the temperature and sends it to the "Client". During this process, it seems that information containing 'cccd' and 'uuid' is being sent.
["BleApp_ConfigureNotifications(void)" function in 'BLE_temperature_collector.c']

After the 'Client (Temp Collector) device" sends a command, the 'Server (Temp Sensor) device" recognizes the command, measures the temperature, and transmits it to the 'Client'.
["BleApp_GattServerCallback (deviceId_t deviceId, gattServerEvent_t* pServerEvent)" function in 'BLE_temperature_sensor.c']

I understood that the value of "pServerEvent->eventType" should be set to 'gEvtCharacteristicCccdWritten_c' so that the "Server(Temp Sensor) device" can recognize the command from the "Client(Temp Collector)" and send the temperature through the Switch() function.
However, I am currently unable to find the process (code) to set the value of "pServerEvent->eventType" to 'gEvtCharacteristicCccdWritten_c' in the 'BLE_temperature_sensor.c' code.
Where can I find the process (code) for setting the value of "pServerEvent->eventType" to 'gEvtCharacteristicCccdWritten_c' in the 'BLE_temperature_sensor' code?
We are waiting for a detailed and detailed answer!
I am not yet familiar with the KW36 SDK and MCUX, so I would be very grateful if you could attach a picture of the code description or the location of the code I am looking for.
Best Regards,
SeokJin.