gn:act_getIIoTBleStatus
(MGIIOT26)
- Description
- Action that reads the BLE status from the IIoT device
- Default value: false
Important
- To be able to use this action, the bleIIoT service must be started!
- This action establishes connection to IIoT device which is persistent. Small number of connections to different devices should be established and it is desirable that
gn:act_disconnectIIoTDevice
is executed if connection is not needed anymore.
- Action returns
- void
Action signatures
Get BLE status
[gn:act_getIIoTBleStatus]|[source,target,callbackWidgetId,callbackEvent]
Parameter Description source
source from where the device MAC address will be get target
target where the BLE status 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/bleStatusNumber
- target@+id/getIIoTBleStatus
- callbackWidgetIdgn:act_set1
- callbackEvent
- ⤷
[gn:act_getIIoTBleStatus]|[@variable/deviceMacClicked,@variable/bleStatusNumber,@+id/getIIoTBleStatus,gn:act_set1]
- ⤷