Skip to content

Conversation

@retfie
Copy link
Contributor

@retfie retfie commented Sep 15, 2019

Simple example with OpenThread and LWM2M IPSO Push button on Nordic nRF52840-PCA10056 board.

Build:
west build -s samples/net/lwm2m_client -d build-lwm2m_client -b nrf52840_pca10056 -- -DCONF_FILE=overlay-ot.conf

Sign:
west sign -t imgtool -d build-lwm2m_client -- --key root-rsa-2048.pem --header-size 512 --version 1.2.3

Flash:
west flash -d build-lwm2m_client --hex-file build-lwm2m_client/zephyr/zephyr.signed.hex

@zephyrbot
Copy link

zephyrbot commented Sep 15, 2019

All checks are passing now.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

@mike-scott
Copy link
Contributor

@retfie Hello! First, thank you for submitting a PR to Zephyr! I almost never get submissions for the LwM2M subsys.

I have a rather large rework of the current lwm2m sample in progress and if possible could we delay working on this PR till I get that up? I really like how the work for the Nordic SDK came out here: https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/nrf9160/lwm2m_client/src/lwm2m

And I'm going to split out the lwm2m source the same way in the mainline.

Tested on nRF52840-PCA10056 board with Leshan as bootstrap and
LWM2M server.

Add up to 4 instances on Push Button object (/3347) and click on their
observe methods. Push button on pca10056 board and status on leshan
server should became 'true' until button is released.

Signed-off-by: Kiril Petrov <[email protected]>
Example config for OpenThread with Zephyr

Signed-off-by: Kiril Petrov <[email protected]>
@retfie
Copy link
Contributor Author

retfie commented Sep 15, 2019

@retfie Hello! First, thank you for submitting a PR to Zephyr! I almost never get submissions for the LwM2M subsys.

I have a rather large rework of the current lwm2m sample in progress and if possible could we delay working on this PR till I get that up? I really like how the work for the Nordic SDK came out here: https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/samples/nrf9160/lwm2m_client/src/lwm2m

And I'm going to split out the lwm2m source the same way in the mainline.

Sure, feel free to reuse some of the parts of this PR or totally ignored it, if something more is coming in this area. I'm very appreciate your work, and very impatient for updates !

Thanks,
Kiril

@jukkar
Copy link
Member

jukkar commented Sep 16, 2019

west build -s samples/net/lwm2m_client -d build-lwm2m_client -b nrf52840_pca10056 -- -DCONF_FILE=overlay-ot.conf

Just wondering if there is a typo here or was the overlay-ot.conf created with all needed options. Shouldn't the overlay file be specified with -DOVERLAY_CONFIG=overlay-ot.conf, isn't the prj.conf file now discarded if done like this?

Edit: above comment was before I looked the commits. So you have overlay-ot.conf file that contains all the needed config options. This should not be done like this, the idea is that the prj.conf is a base file and overlay file adds or removes options from that.

@mike-scott
Copy link
Contributor

@jukkar yes, it looks like the overlay-ot.conf is actually a full conf. I was going to address that once I get back to this PR.

Or, just use the overlay that I have and haven't gotten around to posting.

@nashif nashif added the Stale label Sep 4, 2020
@github-actions github-actions bot closed this Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants