Calling methods through MQTT

In some cases you might want to feed data into device methods via MQTT in order to make some transformation on the raw input. For such purpose, Connio provides two topics to call methods through MQTT.

The first topic allows you to call single method:

connio/data/out/devices/:id/methods/:method_name

The second topic allows you to call multiple methods at once.

connio/data/out/devices/:id/methods/json

{ 
  "dps": [ 
     { "method": "mymethod1", "value": 6 },
     { "method": "mymethod2", "value": [7, 4] },
     ............
  ]
}