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 ?
how to implement the GATT server on the phone with the CTS service.
i added gatt service as explained below , i used nordic-semi-nRF51x-cts-master example code from github
// Add the service to the softdevice
err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY, &cts_uuid, &p_cts->service_handle);
if (err_code != NRF_SUCCESS)
{
return err_code;
}
// Add current time characteristic
return current_time_char_add(p_cts, p_cts_init);
By the way i can able to view my current time service characteristics in phone but in terminal time was not updating
if i add gatt characteristics then bonding also not happening its disconnecting automatically
how to implement the GATT server on the phone with the CTS service.
i added gatt service as explained below , i used nordic-semi-nRF51x-cts-master example code from github
// Add the service to the softdevice
err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY, &cts_uuid, &p_cts->service_handle);
if (err_code != NRF_SUCCESS)
{
return err_code;
}
// Add current time characteristic
return current_time_char_add(p_cts, p_cts_init);
By the way i can able to view my current time service characteristics in phone but in terminal time was not updating
if i add gatt characteristics then bonding also not happening its disconnecting automatically