gn:act_resetIIoTDeviceToFactorySettings
(MGIIOT26)
- Description
- Action that resets the IIoT device to factory state
- Default value: false
Important
- To be able to use this action, the bleIIoT service must be started!
- Action returns
- void
Action signatures
Reset device
[gn:act_resetIIoTDeviceToFactorySettings]|[source,target,callbackWidgetId,callbackEvent]
Parameter Description source
source from where the device MAC address 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/deviceMacStatus
- target@+id/resetIIoTDeviceToFactorySettings
- callbackWidgetIdgn:act_set1
- callbackEvent
- ⤷
[gn:act_resetIIoTDeviceToFactorySettings]|[@variable/deviceMacClicked,@variable/deviceMacStatus,@+id/resetIIoTDeviceToFactorySettings,gn:act_set1]
- ⤷