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

gn:act_enableIIoTDeviceDeepSleep(MGIIOT26)

Description
Action that sets the device into deep sleep

Important

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

Action signatures

Enable deep sleep

[gn:act_enableIIoTDeviceDeepSleep]|[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/enableIIoTDeviceDeepSleep - callbackWidgetId
gn:act_set1 - callbackEvent
[gn:act_enableIIoTDeviceDeepSleep]|[@variable/deviceMacClicked,@variable/deviceMacStatus,@+id/enableIIoTDeviceDeepSleep,gn:act_set1]