Samraksh eMote .NOW
TemperatureSensor Constructor
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: Visual Basic (Declaration) Language Filter: Visual Basic (Usage) Language Filter: C# Language Filter: C++/CLI
Visual Basic (Declaration)
Visual Basic (Usage)
C#
C++/CLI

Samraksh.eMote.SensorBoard Namespace > TemperatureSensor Class : TemperatureSensor Constructor

Constructor for Kiwi Temperature Sensor
Syntax

- Visual Basic
- C#
- C++/CLI

    'Declaration

    Public Function New( _
       ByVal pin As Cpu.Pin, _
       ByVal samplingRate As Integer _
    )

    'Usage

    Dim pin As Cpu.Pin
    Dim samplingRate As Integer

    Dim instance As New TemperatureSensor(pin, samplingRate)

    public TemperatureSensor(
       Cpu.Pin pin,
       int samplingRate
    )

    public:
    TemperatureSensor(
       Cpu.Pin pin,
       int samplingRate
    )

#### Parameters

pin
samplingRate

Exceptions

Exception | Description
--- | ---
System.SystemException | Defines the base class for predefined exceptions in the System namespace.
System.InvalidOperationException | The exception that is thrown when a method call is invalid for the object's current state.

Requirements

Target Platforms: eMote .NOW

See Also

#### Reference

TemperatureSensor Class
TemperatureSensor Members

Send Feedback