C# Class WindowsIoTCorePi2FezHat.ConnectTheDotsSensor

Class to manage sensor data and attributes
Mostrar archivo Open project: amykatenicho/IoTWorkshop Class Usage Examples

Public Methods

Method Description
ConnectTheDotsSensor ( ) : System

Default parameterless constructor needed for serialization of the objects of this class

ConnectTheDotsSensor ( string guid, string measurename, string unitofmeasure ) : System

Construtor taking parameters guid, measurename and unitofmeasure

ToJson ( ) : string

ToJson function is used to convert sensor data into a JSON string to be sent to Azure Event Hub

Method Details

ConnectTheDotsSensor() public method

Default parameterless constructor needed for serialization of the objects of this class
public ConnectTheDotsSensor ( ) : System
return System

ConnectTheDotsSensor() public method

Construtor taking parameters guid, measurename and unitofmeasure
public ConnectTheDotsSensor ( string guid, string measurename, string unitofmeasure ) : System
guid string
measurename string
unitofmeasure string
return System

ToJson() public method

ToJson function is used to convert sensor data into a JSON string to be sent to Azure Event Hub
public ToJson ( ) : string
return string