Skip to content

Dev Container project for building and running the Zephyr LwM2M sample app with the Leshan Demo Server

License

Notifications You must be signed in to change notification settings

nakerlund/ZephyrDevContainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zephyr and LwM2M

This project is setup to do everything needed to run the Zephyr LwM2M Sample in QEMU with the Leshan Demo Server

Apple Silicon note: Replace qemu_x86 with qemu_cortex_m3 to build but unfortunately, the network will not work.

The instructions below remain valid for Linux hosts with x86_64 CPUs.

Prerequisites

  1. Install VS Code
  2. Install Docker (If on Windows or MacOS, use Docker Desktop)

Instructions

Open this project in VS Code and let it start the dev container. This will do the following:

Leshan should start on its own at localhost.

1. Build lwM2M Sample

  • Terminal 1:
west build -b qemu_x86 /west/zephyr/samples/net/lwm2m_client -DCONF_FILE="prj.conf"

2. Setup network for qemu

Start the net-tools according to the guide

  • Terminal 2:
cd /west/tools/net-tools
. loop-socat.sh
  • Terminal 3:
cd /west/tools/net-tools
sudo bash loop-slip-tap.sh

3. Run qemu with the build

  • Terminal 4:
west build -t run

About

Dev Container project for building and running the Zephyr LwM2M sample app with the Leshan Demo Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published