User Tools

Site Tools


uphp:functions:ow_read

ow_read

WMPRO >= 1.0 WMMEGA FW >= 2.0

Read a byte from the OneWire bus

Description

int ow_read ( )

This function will read a single byte from the OneWire bus. This is a low level function allowing custom OneWire operations.

Parameters

None

Return Values

An integer value of the byte from the bus, or 0 if nothing was available

Example

<?
  $res=ow_read();
  print("Got ".$res." from the OneWire bus.");
?>

See Also

ow_first() - Initiate a OneWire bus scan and return the address of the first device found

ow_next() - Return the address of the next OneWire device found (after an ow_first)

ow_read_temp() - Read a temperature from a device on the OneWire bus

ow_reset() - Reset the OneWire bus

ow_write() - Write a byte to the OneWire bus

uphp/functions/ow_read.txt · Last modified: 2021/09/13 05:57 (external edit)