Hi,
I’m using the “multiple devices” part of this https://electricimp.com/docs/resources/onewire/ for my device code. I’m connecting 3 sensors and it’s working perfectly.
I now need to write the agent side and will need the readings for each sensor’s serial and temperature.
These details are in line 151:
server.log(format(“Device: %02d Family: %02x Serial: %02x%02x%02x%02x%02x%02x Temp: %3.2f”, (device + 1), slaveId[7], slaveId[1], slaveId[2], slaveId[3], slaveId[4], slaveId[5], slaveId[6], tempCelsius));
But I’m not sure how to pass the 6 readings (serial and tempCelsius for the 3 sensors) to the agent.
Would appreciate your help with how to code this please.
Thanks,
Perla