This shows you the differences between two versions of the page.
uphp:functions:ow_next [2017/05/11 10:01] admin created |
uphp:functions:ow_next [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======ow_read====== | ||
- | |||
- | < | ||
- | |||
- | Read the next device from a onewire bus. | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | |||
- | ====Parameter==== | ||
- | |||
- | none | ||
- | |||
- | ====Return Values==== | ||
- | |||
- | An < | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code php> | ||
- | < | ||
- | $arr=ow_first(); | ||
- | if ($arr) { // first device was detected, let's get the second device now | ||
- | $arr=ow_next(); | ||
- | if ($arr) { | ||
- | $devname=sprintf(" | ||
- | print(" | ||
- | } | ||
- | } else print(" | ||
- | ?> | ||
- | </ | ||
- | ====See Also==== | ||
- | |||
- | [[ow_first()]] - Get the first device on the bus | ||
- | |||
- | [[ow_read()]] - Read from onewire bus | ||
- | |||
- | [[ow_read_temp()]] - Read a temperature from a device | ||
- | |||
- | [[ow_reset()]] - Reset the onewire bus | ||
- | |||
- | [[ow_write()]] - Write to onewire bus | ||