RTC In BLE Nano - Question - Mbed

Important changes to forums and questions

All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.

9 years, 10 months ago.

RTC in BLE Nano

Hi,

Does anybody know if the BleNano has an internal RTC? I am trying to do something like this but it doesn´t work...

set_time(1256729737); while(true) { time_t seconds = time(NULL); printf("Time as seconds since January 1, 1970 = %d\r\n", seconds); printf("Time as a basic string = %s\r\n", ctime(&seconds));

char buffer[32]; strftime(buffer, 32, "%I:%M %p\r\n", localtime(&seconds)); printf("Time as a custom formatted string = %s\r\n\n", buffer); }

Thank you!

Question relating to:

Last updated: 27 Aug 2020 RedBearLab BLE Nano BLE Nano is the smallest Bluetooth 4.1 Low Energy (BLE) development board in the market. The core is Nordic nRF51822 (an ARM Cortex-M0 SoC plus BLE capability) running at 16MHz …

Tag » Arduino Nano 33 Ble Rtc