POST api/lightsandheating/devices/{deviceAssetId}/switchto/{switchValue}
Turn on or off switchpos device. inspired by api/customers/{customerId:int:min(1)}/gateways/{gatewayAssetId:int:min(1)}/devices/{deviceAssetId:int:min(1)}/control in IoT Controller. This call, however, only needs deviceid and position value, and will find other necessary info from device id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
deviceAssetId |
device asset id |
integer |
Required |
switchValue |
the new switch position to set |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.