This repository contains LwM2M Client samples based on open-source Anjay Zephyr Module and nRF Connect SDK v.3.2.0.
This project works on Nordic Semiconductor nRF9160DK.
First of all, get Zephyr, SDK and other dependencies, as described in Zephyr's Getting Started Guide (first 4 steps). Also for flashing nRF Util have to be installed.
After navigating to Zephyr workspace (~/zephyrproject is default after following Getting Started Guide), clone Anjay Zephyr client repository.
git clone https://github.com/AVSystem/Anjay-zephyr-demo
and then download and/or update the demo app dependencies according to west manifest
west config manifest.path Anjay-zephyr-demo
west config manifest.file west-nrf.yml
west update
Anjay is configured by files found config/, exported as globally visible
in Zephyr build system by CMakeLists.txt.
Check the online documentation or see the files' inline comments to learn how to configure Anjay capabilities and behavior.
Anjay as Zephyr module can be enabled and configured with Kconfig. Run
west build -t menuconfig
and see Anjay zephyr demo settings and Zephyr Kernel -> Modules -> anjay-zephyr-module menus.
Now, enter the demo app directory and compile the application
cd Anjay-zephyr-demo
west build -b nrf9160dk/nrf9160/ns -p
To flash the board, run
west flash
The application logs are sent over the USB interface at 115200 baud (8N1).
The nRF9160DK exposes multiple ports. Use the one corresponding to VCOM0 (usually /dev/ttyACM0 on Linux).
This repository is licensed under the Apache License 2.0 and is intended for evaluation and prototyping purposes.
Please note that it is a demo based on Anjay Zephyr Module, which includes the Anjay LwM2M Client SDK as a Git submodule. Anjay Lite is distributed under a dual-license model:
A non-commercial license is available for evaluation and non-commercial use. For commercial use or production deployments, a valid per-SKU commercial license is required.
For details, see the Anjay LICENSE file or visit avsystem.com.
