BG96 and LwM2M - Is there any example that currently works?

I’m using this example as a working base:

http://www.noomio.com.au/wiki/bg96/lwm2m-step-by-step/

After rebooting the modem I get the expected log:

LWM2M: State: STATE_REGISTER_REQUIRED
LWM2M: State: STATE_REGISTERING
LWM2M: State: STATE_READY

I have an entry on the Leshan server for this device, but when I select the “read” button for any property on the Leshan server, it has a device timeout in the first attempt and after that, it says the device is sleeping:

“Unable to read instance /1/1 for urn:imei:866425030054276 : 400 Invalid request:The destination client is sleeping, request cannot be sent.”

My device is running FW BG96MAR04A04M1G_01.005.01.005

Any idea of what could be the problem? Are there more updated examples to use?

Thanks in advance.

Best regards

Fernando

Have your register you device in LwMm server first ,if not ,pls do it

any more detail, pls reach to support@quectel.com

we need to check the log for more detail

Hi Stephen,

Thanks for your feedback! I am currently seeing these messages on the debug console, doesn’t this mean the device is registered on the server?

LWM2M: State: STATE_REGISTER_REQUIRED
LWM2M: State: STATE_REGISTERING
LWM2M: State: STATE_READY

Or do I need to register it manually? And how is this done?

Best regards

Fernando