Router Registry
ThingsIX router registry
Functions
routers
function routers(bytes32 id) external view returns (struct IRouterRegistry.Router)
returns router details for the router identified by the given id.
Parameters
Name | Type | Description |
---|---|---|
id | bytes32 | router identifier |
routerCount
function routerCount() external view returns (uint256)
Number of registered reouters.
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | number of registered routers |
routersPaged
function routersPaged(uint256 start, uint256 end) external view returns (struct IRouterRegistry.Router[])
Batch of routers.
Parameters
Name | Type | Description |
---|---|---|
start | uint256 | start index (inclusive) |
end | uint256 | last index (exclusive) |
Return Values
Name | Type | Description |
---|---|---|
[0] | struct IRouterRegistry.Router[] | batch of routers in the given range |
Events
RouterRegistered
event RouterRegistered(bytes32 id)
raised when a new router is registered
RouterUpdated
event RouterUpdated(bytes32 id)
raised when router details are updated
RouterRemoved
event RouterRemoved(bytes32 id)
raised when a router is removed
Structs
Router
struct Router {
bytes32 id;
address owner;
uint24 netid;
uint32 prefix;
uint8 mask;
uint8 frequencyPlan;
string endpoint;
}