gn:act_executeIIoTDeviceCommand
(MGIIOT26)
- Description
- Action that sends IIoT command via REST API to backend
Important
- To be able to use this action, the bleIIoT service must be started!
- Action returns
- void
Action signatures
Send command
[gn:act_executeIIoTDeviceCommand]|[source,source2,target,callbackWidgetId,callbackEvent]
Parameter Description source
source from where the device MAC address will be get source2
source from where the command will be get target
target where the result will be stored callbackWidgetId
id of the widget where the callback event will be executed - Valid callbackWidgetId:
hardcoded
callbackEvent
name of the widget event that will be executed - Valid callbackEvent:
hardcoded
- Valid callbackWidgetId:
Example
@variable/deviceMacClicked
- source@variable/commandString
- source@variable/target
- target@+id/executeIIoTDeviceCommand
- callbackWidgetIdgn:act_set1
- callbackEvent
- ⤷
[gn:act_executeIIoTDeviceCommand]|[@variable/deviceMacClicked,@variable/commandString,@variable/target,@+id/executeIIoTDeviceCommand,gn:act_set1]
- ⤷