|  Developer
Updated on November 22, 2021

isNetworkState

  • Reacting on different network state changes.
  • This feature is available since version.
Edit
Field Type Required Description
blockOptions.method.args.interface networkId Id of network interface from hub.network.get request.
blockOptions.method.args.state token + Type of trigger. Possible values: main – when the defined interface become using as main interface. If the interface is not defined than it should be always true and triggered when any interface were changed. failed – this block is true when defined interface cannot establish Internet connection or has any problems with configuration. If interface is not defined then main interface should be used for making checking.
Edit
				
					"when" : [{
   "blockType":"when",
   "blockOptions":{
      "method":{
         "name":"isNetworkState",
         "args":{
              "interface":"id",
              "state":"state"
         }
      }
   },
   "fields":[
        {
           "name":"id",
           "type":"networkId",
           "value":"mobile0"
        },
        {
           "name":"state",
           "type":"token",
           "value":"main"
        },
   ]
}]