C# Class web_field_gateway.Controllers.FieldGatewayController

Inheritance: ApiController
Show file Open project: michael-chi/Azure-IOTHub

Public Methods

Method Description
Register ( string deviceId ) : Task
SendTelemetry ( TelemetryData telemetry ) : System.Threading.Tasks.Task
Unregister ( string deviceId ) : System.Threading.Tasks.Task

Private Methods

Method Description
DeleteDeviceKey ( string deviceId ) : void
FieldGatewayController ( ) : System
GetDeviceKey ( string deviceId ) : Task
ReceiveCommand ( [ deviceId ) : HttpResponseMessage
SaveDeviceIdentity ( string deviceId, string deviceKey ) : void

Method Details

Register() public method

public Register ( string deviceId ) : Task
deviceId string
return Task

SendTelemetry() public method

public SendTelemetry ( TelemetryData telemetry ) : System.Threading.Tasks.Task
telemetry web_field_gateway.Models.TelemetryData
return System.Threading.Tasks.Task

Unregister() public method

public Unregister ( string deviceId ) : System.Threading.Tasks.Task
deviceId string
return System.Threading.Tasks.Task