This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
uphp:functions:ow_read_temp [2017/05/11 10:19] admin created |
uphp:functions:ow_read_temp [2021/09/13 05:57] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======ow_read_temp====== | ======ow_read_temp====== | ||
- | < | + | < |
- | Read a temperature from a device on the onewire | + | Read a temperature from a device on the OneWire |
====Description==== | ====Description==== | ||
Line 9: | Line 9: | ||
<well size=" | <well size=" | ||
<span style=" | <span style=" | ||
- | <span style=" | + | <span style=" |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
- | + | <span style=" | |
- | <span style=" | + | |
</ | </ | ||
====Parameter==== | ====Parameter==== | ||
- | < | + | < |
====Return Values==== | ====Return Values==== | ||
- | A < | + | A < |
- | ====Example==== | + | ====Examples==== |
<code php> | <code php> | ||
- | <pre><? | + | <? |
- | + | ||
$res=ow_read_temp(); | $res=ow_read_temp(); | ||
- | print(" | + | print(" |
| | ||
- | $dev=array(0xA0, | + | $dev=array(0xA0, |
$res=ow_read_temp($dev); | $res=ow_read_temp($dev); | ||
- | print(" | + | print(" |
| | ||
?> | ?> | ||
Line 40: | Line 39: | ||
====See Also==== | ====See Also==== | ||
- | [[ow_first()]] - Get the first device | + | [[ow_first()]] - Initiate a OneWire bus scan and return the address of the first device |
- | [[ow_next()]] - Get next device | + | [[ow_next()]] - Return the address of the next OneWire |
- | [[ow_read()]] - Read a byte from a device | + | [[ow_read()]] - Read a byte from the OneWire bus |
- | [[ow_reset()]] - Reset the onewire | + | [[ow_reset()]] - Reset the OneWire |
- | [[ow_write()]] - Write to onewire | + | [[ow_write()]] - Write a byte to the OneWire |