From wiki.ginstr.com
Jump to: navigation, search

gn:act_updateIIoTDeviceFirmware(MGIIOT26)

Description
Action that starts update firmware process manually

Important

To be able to use this action, the bleIIoT service must be started!
Action returns
void

Action signatures

Update firmware

[gn:act_updateIIoTDeviceFirmware]|[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

Example

@variable/deviceMacClicked - source
@variable/deviceMacStatus - target
@+id/updateIIoTDeviceFirmware - callbackWidgetId
gn:act_set1 - callbackEvent
[gn:act_updateIIoTDeviceFirmware]|[@variable/deviceMacClicked,@variable/deviceMacStatus,@+id/updateIIoTDeviceFirmware,gn:act_set1]