This shows you the differences between two versions of the page.
uphp:functions:ow_first [2017/05/11 09:58] admin created |
uphp:functions:ow_first [2021/09/13 05:57] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======ow_first====== | ||
- | |||
- | < | ||
- | |||
- | Start a new OneWire bus scan and return the first device | ||
- | |||
- | ====Description==== | ||
- | |||
- | <well size=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | </ | ||
- | |||
- | ====Parameter==== | ||
- | |||
- | none | ||
- | |||
- | ====Return Values==== | ||
- | |||
- | An < | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code php> | ||
- | < | ||
- | $arr=ow_first(); | ||
- | if ($arr) { | ||
- | $devname=sprintf(" | ||
- | print(" | ||
- | } else print(" | ||
- | ?> | ||
- | </ | ||
- | ====See Also==== | ||
- | |||
- | [[ow_next()]] - Get next Onewire device | ||
- | [[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 | ||
- | |||
- | </ | ||