This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
uphp:functions:ow_first [2017/05/11 09:58] admin created |
uphp:functions:ow_first [2017/05/11 09:59] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
- | Start a new OneWire bus scan and return the first device | + | Start a new OneWire bus scan and return the first device. Currently only DS18B20 temperature sensors are detectable. |
====Description==== | ====Description==== | ||
Line 27: | Line 27: | ||
$arr=ow_first(); | $arr=ow_first(); | ||
if ($arr) { | if ($arr) { | ||
- | $devname=sprintf(" | + | $devname=sprintf(" |
print(" | print(" | ||
} else print(" | } else print(" | ||
Line 34: | Line 34: | ||
====See Also==== | ====See Also==== | ||
- | [[ow_next()]] - Get next Onewire | + | [[ow_next()]] - Get next onewire |
[[ow_read()]] - Read from onewire bus | [[ow_read()]] - Read from onewire bus | ||
+ | |||
[[ow_read_temp()]] - Read a temperature from a device | [[ow_read_temp()]] - Read a temperature from a device | ||
+ | |||
[[ow_reset()]] - Reset the onewire bus | [[ow_reset()]] - Reset the onewire bus | ||
- | [[ow_write()]] - Write to onewire bus | ||
- | </ | + | [[ow_write()]] - Write to onewire bus |