Passes the microcontroller ID message as a string rather than an integer to correct long int parsing errors on the node.js side

This commit is contained in:
Oliver Cullis 2024-11-27 19:00:25 +01:00
parent c6bcdb5088
commit 586cca2a65

View File

@ -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],