nRF5 SDK for Thread and Zigbee v4.1.0
Zigbee CLI wrapper

Table of Contents

This information applies to the following SoCs: nRF52833 and nRF52840.

Zigbee CLI wrapper (zb_cli_wrapper) is a Python package for the nRF5 SDK for Zigbee that includes a wrapper for automating communication with the Zigbee CLI Agent example and improving the control of the Zigbee network.

It is a standalone package and can be used on both Windows and Linux machines.


Usage

The wrapper allows you to:

Supported CLI commands

Zigbee CLI Wrapper automates the communication with Zigbee CLI Agent example by wrapping the following CLI commands to Python functions and by parsing command responses:


Installing the wrapper

The Zigbee CLI wrapper package is available for download from the Zigbee CLI wrapper PyPI repository.


MQTT Zigbee Gateway example

The wrapper package includes an example of how the Zigbee CLI co-processor design can be used for the implementation of a MQTT Zigbee Gateway.

The gateway is a Python application that translates the data stored in MQTT topics to Zigbee cluster-based data storage. This way, it enables access to the Zigbee network that uses the MQTT protocol.

zigbee_mqtt_gateway_example.svg
Figure 1. Zigbee to MQTT gateway with the CLI wrapper.

To access or control the Zigbee network (or both), the application uses:

The example source files can be found in the example directory in the wrapper package, which also includes the readme.md file with information about the installation procedure.


Documentation feedback | Developer Zone | Subscribe | Updated