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:
parent
c6bcdb5088
commit
586cca2a65
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user