I see from the 16-bit UUID Numbers document, that UUID 0x2A08 is "Date Time", but I'm not sure what format the date/time should be when I enter it as data to the
Code: Select all
BLE().gatt_write(handle, data)
I've tried the output from:
Code: Select all
utime.time() # 664211220
machine.RTC().datetime() # (2021, 1, 17, 6, 15, 5, 5, 986239)
I've reviewed the documentation for bluetooth in MicroPython, but it doesn't specify.
I expect that I need to do some conversion to bytes or bytearray, but I'm not sure where I would find the documentation to describe what is expected?