Page 1 of 1
reading multiple TMP1100_0 Sensors on a HUB5000_0
Posted: Wed Feb 16, 2022 4:31 pm
by rabarar
I've looked at the example code to read a temp sensor on the wifi hub - what isn't clear is how to read a specific sensor on a specified channel. For example, If I have port 4 and 5 each connected to a TMP1100_0 how can I read both and know which value is from which port?
Re: reading multiple TMP1100_0 Sensors on a HUB5000_0
Posted: Thu Feb 17, 2022 9:26 am
by mparadis
You can set the HubPort property before opening the channel. And you can use the Channel property to determine whether you're using the thermocouple channel (channel 0) or the ambient temperature sensor on the TMP1100 itself (channel 1).
You can read more about these addressing properties
here.
Re: reading multiple TMP1100_0 Sensors on a HUB5000_0
Posted: Thu Feb 17, 2022 11:13 am
by rabarar
Thanks - that makes sense.