6 years, 9 months ago.

How to transfer timestamps over BLE

Hi, I need to send and recieve timestamps over ble from nrf51822(BLE Nano) to Android app When I recieve timestamp (10 digits) from app to nrf51822 I should convert byte array to integer. It is surprise for me, but i cannot find simple method to convert uitn8_t* to integer.

Now I use this code

int b2i(uint8_t* bytes) {
	return strtol((char*) bytes,NULL,10);
}

Hi Eugene, can you please clarify what your question is regarding timestamps and BLE?

posted by Jenny Plunkett 10 Jul 2017
Be the first to answer this question.