Closed MehranMazhar closed 5 years ago
Did you find anything i am also unable to call direct method
The direct methods are not currently supported on Arduino. I've marked this as an enhancement request.
Do we have any solution for Direct methods. I am using Esp8266
I tested the new version of the Arduino module. When I send a message to Arduino with : {"Name" : "TurnFanOn", "Parameters" : {}}
This method works correctly .
but when i add the model :
WITH_METHOD(TurnOn)
and define this function :
Calling direct methods does not work But in previous versions of this solution it responded.
I have to work with the direct method in arduino for the following reasons:
Durability : Disconnected devices are not contacted. The solution back end is notified that the device is not connected.
Data flow: Two-way. The device app can respond to the method right away. The solution back end receives the outcome contextually to the request.