Integrate your ESP32-based device with Quectel BG96 module to manage it via {{ coiote_short_name }}.
- An ESP32 device.
- A BG96 module with internet connection (it is strongly recommended to have a BG96 with firmware version BG96MAR03A06M1G).
- Installed ESP-IDF and dependencies (installation steps 1-4 from ESP32 official documentation). Supported ESP-IDF version is v4.4.
- A user with access to the [{{ coiote_long_name }}]({{ coiote_site_link }}).
- Create a project directory for the integration.
- Open a command line interface and run
git clone https://github.com/AVSystem/Anjay-esp32-client --recursive. - Run
. $HOME/esp/esp-idf/export.shandidf.py set-target esp32. - Open the menuconfig with the
idf.py menuconfigcommand, navigate to Component config -> anjay-esp32-client.- In Choose targeted development board, select
ESP32-DevKitC and derivativesfrom the list of supported boards. - In Choose an interface, select
External BG96 module. - In BG96 module configuration, specify the UART port, Tx pin and Rx pin for the BG96 module. Example port and pin numbers are provided in the screenshot below.

- In Client options, provide device credentials and Server URI:
- Endpoint name - your device endpoint name
- Server URI - the address and port of your {{ coiote_short_name }} installation, e.g.
{{ coaps_uri }} - Security mode - the PSK security mode
- PSK configuration - the PSK identity and PSK key
- In the
Connection configuration, set APN name tointernetfor the sake of this tutorial. However, APN name depends on your SIM card operator. - Press
son the keyboard to Save the configuration.
- In Choose targeted development board, select
- Connect the Tx, Rx and GND pins, respectively, to the ESP32-DevKitC pins selected in the previous step.
To connect your ESP32-DevKitC to the {{ coiote_long_name }}, use your access to a {{ coiote_short_name }} installation, or register at {{ coiote_site_link }}/ to get access.
To connect the board:
- Log in to {{ coiote_short_name }} and from the left side menu, select Device Inventory.
- In Device Inventory, click Add device.
- Select the Connect your LwM2M device directly via the Management server tile.

- In the Device credentials step:
- In the Device ID field, type the endpoint name provided in the IDF menuconfig Client options, e.g.
ESP32_test. - In the Security mode section, select the PSK mode.
- In the Key identity field, type the identity provided in the IDF menuconfig Client options, e.g.
ESP32_test. - In the Key field, type the
pskkey provided in the IDF menuconfig Client options.
- In the Device ID field, type the endpoint name provided in the IDF menuconfig Client options, e.g.
- Click the Add device button and Confirm in the confirmation pop-up.
- In the Connect your device step, the server is waiting for the board to connect. You can now start connecting the device.
- Open the command line interface, go to your project directory, and run
idf.py flash monitor.