Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
168 stars 95 forks source link

how can i send TurnFanOn and TurnFanOff manually ? #59

Closed MehranMazhar closed 7 years ago

MehranMazhar commented 7 years ago

how can i call methods ( TurnFanOn and TurnFanOff) using device explorer in windows or azure-cli ?

zure

tameraw commented 7 years ago

@MehranMazhar - Please checkout this document https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-device-sdk-c-serializer#message-handling

Basically, you want to follow this json format: If no parameters: {"Name":"TurnFanOff", "Parameters":{}} If One Parameter: {"Name":"SetAirResistance","Parameters":{"Position":42}} If Multiple Parameters: {"Name":"SetAirResistance2","Parameters":{"Position1":10, "Position2":20}}

tameraw commented 7 years ago

Closing. If still encountering problems, please let us know.

MehranMazhar commented 7 years ago

thanks . its worked for me .