Closed MehranMazhar closed 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}}
Closing. If still encountering problems, please let us know.
thanks . its worked for me .
how can i call methods ( TurnFanOn and TurnFanOff) using device explorer in windows or azure-cli ?