Packet Broker Getting Started Commands

Commands

pbadmin
cluster
apikey
create
delete
list
update-state
completion
bash
fish
powershell
zsh
gen
hugodoc
tree
join-server
create
delete
get
list
update
target
network
apikey
create
delete
list
update-state
create
delete
get
init
list
tenant
create
delete
get
list
update
target
update
target
pbctl
catalog
home-networks
join-servers
networks
completion
bash
fish
powershell
zsh
gateway-visibility
delete
get
set
gen
hugodoc
tree
policy
delete
get
list
networks
set
report
routed-messages
route
targets
pbpub
completion
bash
fish
powershell
zsh
gen
hugodoc
tree
pbsub
completion
bash
fish
powershell
zsh
gen
hugodoc
tree

pbpub

pbpub can be used to publish uplink and downlink messages.

pbpub [flags]

Examples


  Publish uplink message as Forwarder:

    Publish as network:
      $ pbpub --forwarder-net-id 000013 < message.json

    Publish as tenant:
      $ pbpub --forwarder-net-id 000013 --forwarder-tenant-id tti < uplink.json

    Publish as named cluster:
      $ pbpub --forwarder-net-id 000013 --forwarder-cluster-id eu1 < uplink.json

    Publish as tenant in a named cluster:
      $ pbpub --forwarder-net-id 000013 --forwarder-tenant-id tti \
        --forwarder-cluster-id eu1 < uplink.json

  Publish downlink message as Home Network:

    Publish as network to a Forwarder network:
      $ pbpub --home-network-net-id 000009 \
        --forwarder-net-id 000013 < downlink.json

    Publish as tenant to a Forwarder network:
      $ pbpub --home-network-net-id 000013 \
        --home-network-tenant-id community \
        --forwarder-net-id 000009 < downlink.json

    Publish as tenant to a Forwarder tenant:
      $ pbpub --home-network-net-id 000013 \
        --home-network-tenant-id community \
        --forwarder-net-id 000013 \
        --forwarder-tenant-id tti < downlink.json

    Publish as named cluster to a named cluster in a Forwarder network:
      $ pbpub --home-network-net-id 000013 \
        --home-network-tenant-id community \
        --home-network-cluster-id eu1 \
        --forwarder-net-id 000013 \
        --forwarder-tenant-id community \
        --forwarder-cluster-id eu2 < downlink.json

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
  -h, --help                             help for pbpub
      --home-network-cluster-id string   cluster ID
      --home-network-net-id netID        LoRa Alliance NetID
      --home-network-tenant-id string    tenant ID
      --insecure                         insecure
      --message-type messageType         message type (message, message-delivery-state) (default message)
      --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

  • pbpub completion - generate the autocompletion script for the specified shell
  • pbpub gen - Generation commands

Packet Broker

Packet Broker

Getting Started

Commands

About Us

The Things Network

The Things Industries

About this page

Last changed on 01 Jan 0001.