From 586cca2a655742a2a2e2367865da27ea27f52e09 Mon Sep 17 00:00:00 2001 From: Oliver Cullis Date: Wed, 27 Nov 2024 19:00:25 +0100 Subject: [PATCH] Passes the microcontroller ID message as a string rather than an integer to correct long int parsing errors on the node.js side --- async_tasks/onboard_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async_tasks/onboard_tasks.py b/async_tasks/onboard_tasks.py index c1c684b..42c9b16 100644 --- a/async_tasks/onboard_tasks.py +++ b/async_tasks/onboard_tasks.py @@ -42,7 +42,7 @@ async def measure_sensors( # Package into message for i in range(len(sensors)): message = json.dumps({ - "micro": microcontroller_id, + "micro": str(microcontroller_id), "sensor": sensors[i].name, "temperature": temperatures[i], "time": timestamps[i],