pbsub
pbsub can be used to subscribe to uplink and downlink messages.
pbsub [flags]
Examples
Subscribe as Forwarder:
Subscribe as network:
$ pbsub --forwarder-net-id 000013
Subscribe as tenant:
$ pbsub --forwarder-net-id 000013 --forwarder-tenant-id community
Subscribe as named cluster in network:
$ pbsub --forwarder-net-id 000013 --forwarder-cluster-id eu1
Subscribe as named cluster in tenant:
$ pbsub --forwarder-net-id 000013 --forwarder-tenant-id community \
--forwarder-cluster-id eu1
Subscribe as Home Network:
Subscribe as network:
$ pbsub --home-network-net-id 000013
Subscribe as tenant:
$ pbsub --home-network-net-id 000013 --home-network-tenant-id community
Subscribe as named cluster in network:
$ pbsub --home-network-net-id 000013 --home-network-cluster-id eu1
Subscribe as named cluster in tenant:
$ pbsub --home-network-net-id 000013 --home-network-tenant-id community \
--home-network-cluster-id eu1
Options
--client-id string OAuth 2.0 client ID
--client-secret string OAuth 2.0 client secret
--config string config file (default is $HOME/.pb.yaml, .pb.yaml)
-d, --debug debug mode
--forwarder-cluster-id string cluster ID
--forwarder-net-id netID LoRa Alliance NetID
--forwarder-tenant-id string tenant ID
--group string subscription group
-h, --help help for pbsub
--home-network-cluster-id string cluster ID
--home-network-net-id netID LoRa Alliance NetID
--home-network-tenant-id string tenant ID
--insecure insecure
--router-address string address of the server "host[:port]"
--token-url string OAuth 2.0 token URL (default "https://iam.packetbroker.net/token")
SEE ALSO
- pbsub completion - generate the autocompletion script for the specified shell
- pbsub gen - Generation commands