Class IqrfNetManager
Tool for managing IQMESH network.
-
App\IqrfAppModule\Model\IqrfNetManager
uses
Nette\SmartObject (not available)
Methods summary
public
|
|
public
array
|
#
clearAllBonds( )
The command removes all nodes from the list of bonded nodes at coordinator memory.
It actually destroys the network from the coordinator point of view.
The command removes all nodes from the list of bonded nodes at coordinator memory.
It actually destroys the network from the coordinator point of view.
Returns
array DPA request and response
|
public
array
|
#
bondNode( App\IqrfAppModule\Model\string $address = '00' )
This command bonds a new node by the coordinator.
There is a maximum approx. 12 s blocking delay when this function is called.
This command bonds a new node by the coordinator.
There is a maximum approx. 12 s blocking delay when this function is called.
Parameters
- $address
- A requested address for the bonded node. The address must not be used (bonded) yet. If this parameter equals to 0, then the 1 free address is assigned to the node.
Returns
array DPA request and response
|
public
array
|
#
discovery( App\IqrfAppModule\Model\string $txPower = '00', App\IqrfAppModule\Model\string $maxAddress = '00' )
Runs IQMESH discovery process.
The time when the response is delivered depends highly on the number of network devices, the network topology, and RF mode, thus, it is not predictable. It can take from a few seconds to many minutes.
Runs IQMESH discovery process.
The time when the response is delivered depends highly on the number of network devices, the network topology, and RF mode, thus, it is not predictable. It can take from a few seconds to many minutes.
Parameters
- $txPower
- TX Power used for discovery.
- $maxAddress
- Nonzero value specifies maximum node address to be part of the discovery process. This feature allows splitting all node devices into two parts: [1] devices having an address from 1 to MaxAddr will be part of the discovery process thus they become routers, [2] devices having an address from MaxAddr+1 to 239 will not be routers. See IQRF OS documentation for more information. The value of this parameter is ignored at demo version. A value 5 is always used instead.
Returns
array DPA request and response
|
public
array
|
#
removeNode( App\IqrfAppModule\Model\string $address )
Removes already bonded node from the list of bonded nodes at coordinator memory.
Removes already bonded node from the list of bonded nodes at coordinator memory.
Parameters
- $address
- Address of the node to remove the bond to
Returns
array DPA request and response
|
public
array
|
#
rebondNode( App\IqrfAppModule\Model\string $address )
Puts specified node back to the list of bonded nodes in the coordinator memory.
Puts specified node back to the list of bonded nodes in the coordinator memory.
Parameters
- $address
- Number of bonded network nodes
Returns
array DPA request and response
|