This multi-platform Python tool is a "Swiss knife" to control the radio and nodes.
sudo pip3 install --upgrade --no-cache-dir bch
bch sub
bch -H hub.local sub
bch sub node/kitchen/#
bch pub node/kitchen/thermometer/0:0/temperature 21.70
bch pairing --start
bch -H hub.local pairing --start
bch pairing --stop
bch -H hub.local pairing --stop
bch node rename generic-node:0 kitchen
bch node rename 836d19831c4a garden
bch node list
bch node remove garden
bch node remove 836d19831c4a
Usage: bch [OPTIONS] COMMAND [ARGS]...
Options:
--gateway TEXT Gateway name [default: usb-dongle].
-H, --mqtt-host TEXT MQTT host to connect to [default: 127.0.0.1].
-P, --mqtt-port INTEGER RANGE MQTT port to connect to [default: 1883].
--mqtt-username TEXT MQTT username.
--mqtt-password TEXT MQTT password.
--mqtt-cafile PATH MQTT cafile.
--mqtt-certfile PATH MQTT certfile.
--mqtt-keyfile PATH MQTT keyfile.
-v, --verbosity LVL Either CRITICAL, ERROR, WARNING, INFO or
DEBUG
-h, --help Show this message and exit.
Commands:
gw Gateway
node
pairing
pub
sub Subscribe topic.
version Show program's version number and exit.