You did not miss anything... I missed missed something: there is no address involved in any of the data grams. Therefore - as you state - only one sensor can be on the data line or pin.
Content of data - string variable d - is collecting data also between the read cycles. If the data line is stable - no noise - no data-runaway is to expect. I'm also aware of the fact that d is cleared just before the read cycle, so that it would be possible to de- and re-power the sensor between read phases to conserve energy, assuming read frequency is very low. Much lower than the max frequency defined by the period of power on, stabilize, allow measurement and collection, and power off.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You did not miss anything... I missed missed something: there is no address involved in any of the data grams. Therefore - as you state - only one sensor can be on the data line or pin.
Content of data - string variable
d
- is collecting data also between the read cycles. If the data line is stable - no noise - no data-runaway is to expect. I'm also aware of the fact thatd
is cleared just before the read cycle, so that it would be possible to de- and re-power the sensor between read phases to conserve energy, assuming read frequency is very low. Much lower than the max frequency defined by the period of power on, stabilize, allow measurement and collection, and power off.