gn:act_getIIoTProcessorId
(MGIIOT26)
- Description
- Action that reads the processor id from the IIoT device
- Default value: ""
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 processor id
[gn:act_getIIoTProcessorId]|[source,target,callbackWidgetId,callbackEvent]
Parameter Description source
source from where the device MAC address will be get target
target where the processor id 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/processorIdText
- target@+id/getIIoTProcessorId
- callbackWidgetIdgn:act_set1
- callbackEvent
- ⤷
[gn:act_getIIoTProcessorId]|[@variable/deviceMacClicked,@variable/processorIdText,@+id/getIIoTProcessorId,gn:act_set1]
- ⤷