This section contains instructions for configuring Packet Broker clients.
Network Operators
If you are a network operator, you need the NetID and (optionally) the tenant ID to create an API key, which will be used to authenticate with Packet Broker and configure your LoRaWAN network server.
The NetID (and tenant ID) must already exist. Please contact join@packetbroker.net to make sure the network (and tenant) are created by an administrator.
To initialize configuration for your network, use the pbadmin client. For example, to initialize configuration for your network with NetID 000013 and tenant tenant-a, with the router located in Europe and with rights to read other networks:
$ pbadmin network init --net-id 000013 --tenant-id tenant-a \
--router-address eu.packetbroker.io
Run
$ pbadmin network init --helpwith additional options and examples.
This will issue and print an API key. Copy the API Key ID that is printed. Your Packet Broker administrator needs to approve the API key before it can be used.
Manual Configuration
If you already have an API key, you may manually configure Packet Broker.
Create a configuration file $HOME/.pb.yaml or .pb.yaml in the working directory, with the following contents:
# Router region:
router-address: "eu.packetbroker.io:443"
# Network or tenant API key ID and secret key value:
client-id: "KZUCD5XAYT6EJ5BH"
client-secret: "E67X5675UCQFTTJMUD73URQOLPA5VT4GBFLPCMUHZWK52ML5"
# Uncomment if you are a Packet Broker IAM user (administrators only):
#iam-username: "admin"
#iam-password: "admin"