C# Class WindowsIoTCorePi2FezHat.ConnectTheDotsHelper

ファイルを表示 Open project: amykatenicho/IoTWorkshop Class Usage Examples

Public Properties

Property Type Description
localSettings AppSettings
sensors List

Public Methods

Method Description
ApplySettingsToSensors ( ) : void

Apply settings to sensors collection

ConnectTheDotsHelper ( string iotDeviceConnectionString = "", string organization = "", string location = "", List sensorList = null ) : System
InitHubConnection ( ) : bool

Initialize Hub connection

ReceiveMessage ( ) : Task
SaveSettings ( ) : bool

Apply new settings to sensors collection

SendSensorData ( ConnectTheDotsSensor sensor ) : void
sendMessage ( string message ) : void

Send message to an IoT Hub using IoT Hub SDK

Private Methods

Method Description
SendAllSensorData ( ) : void
ValidateSettings ( ) : bool

Validate the settings

Method Details

ApplySettingsToSensors() public method

Apply settings to sensors collection
public ApplySettingsToSensors ( ) : void
return void

ConnectTheDotsHelper() public method

public ConnectTheDotsHelper ( string iotDeviceConnectionString = "", string organization = "", string location = "", List sensorList = null ) : System
iotDeviceConnectionString string
organization string
location string
sensorList List
return System

InitHubConnection() public method

Initialize Hub connection
public InitHubConnection ( ) : bool
return bool

ReceiveMessage() public method

public ReceiveMessage ( ) : Task
return Task

SaveSettings() public method

Apply new settings to sensors collection
public SaveSettings ( ) : bool
return bool

SendSensorData() public method

public SendSensorData ( ConnectTheDotsSensor sensor ) : void
sensor ConnectTheDotsSensor
return void

sendMessage() public method

Send message to an IoT Hub using IoT Hub SDK
public sendMessage ( string message ) : void
message string
return void

Property Details

localSettings public_oe property

public AppSettings localSettings
return AppSettings

sensors public_oe property

public List sensors
return List