from ble import get_ble_controller
ble.start_notify(ble.uuid['RX_STRING'], ble.parseTemp5s)
# send commands to get times
ble.send_command(CMD.GET_TEMP_5s, "")
2023-02-12 03:14:38,885 | INFO |: Time: 76803 2023-02-12 03:14:38,889 | INFO |: Temperature: 27.139 2023-02-12 03:14:39,811 | INFO |: Time: 77806 2023-02-12 03:14:39,813 | INFO |: Temperature: 27.733 2023-02-12 03:14:40,834 | INFO |: Time: 78808 2023-02-12 03:14:40,836 | INFO |: Temperature: 27.733 2023-02-12 03:14:41,810 | INFO |: Time: 79810 2023-02-12 03:14:41,812 | INFO |: Temperature: 27.733 2023-02-12 03:14:42,834 | INFO |: Time: 80812 2023-02-12 03:14:42,835 | INFO |: Temperature: 27.139
ble.stop_notify(ble.uuid['RX_STRING'])