Hi
how to configure rtc for nrf51dk and i want to update time from my phone then how to read the current time in device ?
Hi
how to configure rtc for nrf51dk and i want to update time from my phone then how to read the current time in device ?
Hi,
Hung is on vacation , and what do you mean by you got struck up in update_current_time_value_in_sd? Have you implemented the gatt server on phone with CTS service like Hung suggested?
You can see the CurrentTimeService in your phone. But your phone doing anything to it, it is just seeing it. In order for your phone to update the characteristic value with its current time, it needs to write to this attribute (for example every one sec)
In the example mentioned here MCP loads the central.bin in which the central side of the service is implemeted. Your device which is client does a read on the server characteristic and the server gives the current time with BLE_GATTC_EVT_READ_RSP
You phone is not sending the response for the read request done by your device, because it has not implemeted this service as a server. Unfortunately we do not have example and code for the server side of this.
You can see the CurrentTimeService in your phone. But your phone doing anything to it, it is just seeing it. In order for your phone to update the characteristic value with its current time, it needs to write to this attribute (for example every one sec)
In the example mentioned here MCP loads the central.bin in which the central side of the service is implemeted. Your device which is client does a read on the server characteristic and the server gives the current time with BLE_GATTC_EVT_READ_RSP
You phone is not sending the response for the read request done by your device, because it has not implemeted this service as a server. Unfortunately we do not have example and code for the server side of this.