emqx-lwm2m icon indicating copy to clipboard operation
emqx-lwm2m copied to clipboard

Showing "codeMsg": "bad_request", "code" :"4.00" when observing an resource

Open threekami opened this issue 4 years ago • 3 comments

Showing "codeMsg": "bad_request", "code" :"4.00" when observing a self-defined resource: /32000/0/6, while other default objects /3/0 have values.

threekami avatar Feb 01 '21 14:02 threekami

You should put the object definition XML for 32000 to etc/lwm2m_xml dir of the installation dir of emqx.

terry-xiaoyu avatar Feb 01 '21 14:02 terry-xiaoyu

Okay, do I need to install emac again? Thx

发自我的iPhone

------------------ Original ------------------ From: Shawn <[email protected]> Date: Mon, Feb 1, 2021 10:48 PM To: emqx/emqx-lwm2m <[email protected]> Cc: Asher Wang <[email protected]>, Author <[email protected]> Subject: Re: [emqx/emqx-lwm2m] Showing "codeMsg": "bad_request", "code" :"4.00" when observing an resource (#107)

You should put the object definition XML for 32000 to etc/lwm2m_xml dir of the installation dir of emqx.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

threekami avatar Feb 03 '21 11:02 threekami

Thanks, I just restarted it and it worked.

发自我的iPhone

------------------ Original ------------------ From: Shawn <[email protected]> Date: Mon, Feb 1, 2021 10:48 PM To: emqx/emqx-lwm2m <[email protected]> Cc: Asher Wang <[email protected]>, Author <[email protected]> Subject: Re: [emqx/emqx-lwm2m] Showing "codeMsg": "bad_request", "code" :"4.00" when observing an resource (#107)

You should put the object definition XML for 32000 to etc/lwm2m_xml dir of the installation dir of emqx.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

threekami avatar Feb 03 '21 12:02 threekami