-1

I've successfully implemented esp8266 mqtt example found here. My device is connecting and sending data to Azure IOT and then processed using a function. In the example it defines multiple actions using WITH_ACTION. Is there any documentation or examples on how to call these actions? I'm currently working off a mac and would prefer to call these actions from a java application if possible.

gre_gor
  • 6,669
  • 9
  • 47
  • 52
Jim
  • 373
  • 5
  • 18

1 Answers1

0

These actions are implement as direct methods on device. You can call these Direct Method to the device from service back end like this tutorial does:

Call the direct method

Set method name and optional parameter. For your esp8266 sample you can set like this:

  // Name of direct method and payload.

  public static final String methodName = "SetAirResistance";

  public static final int payload = 10; // Number of seconds for telemetry interval.
Rita Han
  • 9,574
  • 1
  • 11
  • 24