C# Class DeviceHive.CommonEquipment.Ds18b20

Dallas Semiconductors DS-18B20 digital thermo sensor
Inheritance: ITempSensor
显示文件 Open project: devicehive/devicehive-.net-mf Class Usage Examples

Public Methods

Method Description
Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, byte address ) : System

Constructs DS-18B20 object for a given 1-wire bus and a device address

Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, int index ) : System

Constructs DS-18B20 object for a given 1-wire bus and a device sequence number.

GetTemperature ( ) : float

Returns current temperature

Protected Methods

Method Description
GetDevices ( ) : ArrayList

Private Methods

Method Description
Select ( ) : bool

Select command

Method Details

Ds18b20() public method

Constructs DS-18B20 object for a given 1-wire bus and a device address
public Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, byte address ) : System
bus Microsoft.SPOT.Hardware.OneWire 1-wire bus to whish the sensor is attached
address byte device address
return System

Ds18b20() public method

Constructs DS-18B20 object for a given 1-wire bus and a device sequence number.
public Ds18b20 ( Microsoft.SPOT.Hardware.OneWire bus, int index ) : System
bus Microsoft.SPOT.Hardware.OneWire 1-wire bus to whish the sensor is attached
index int sequence index of a bus element
return System

GetDevices() protected method

protected GetDevices ( ) : ArrayList
return System.Collections.ArrayList

GetTemperature() public method

Returns current temperature
public GetTemperature ( ) : float
return float