Network Tokens
The Network Token of Module and Gateway Devices
are required to be equal in order to communicate with each other. This mechanism
can be used to ensure that only your devices communicate through your gateway.
To create a new NetToken, use the Account.create_network_token()
method
my_net_token = account.create_network_token("The Best Network")
Now, that Network Token can be updated to the Gateway and Module
Devices to take effect. You can view the Network Token of the
Symphony Link Module by
mod_net_token = module.network_token
However, you must set this Network Token on the device, just like the Application Tokens. Viewing the Network Token on the Gateway is very much the same as the Symphony Link Module
gw_net_token = gateway.network_token
However, the Gateway’s Network Token can be set to your Network Token
remotely when regisering the gateway, Account.register_gateway()
# Using the Gateway's Address
account.register_gateway("$101$0-0-0-dbXXXXXXX", my_net_token)
# Or a Gateway Object.
account.register_gateway(my_gw, my_net_token)