AVSystem / Anjay-esp32-client

Anjay ESP-32 LwM2M client
Apache License 2.0
9 stars 6 forks source link

Lwm2m Client Issue in Openthread Device #9

Open Hariprabhu13 opened 7 months ago

Hariprabhu13 commented 7 months ago

Hi everyone, I have facing the issue to use the LWM2M client in my openthread device as Application Layer. Device Configuration : 1.) Espressif Devikit Wrover - ESP32C6 2.) Openthread Platform 3.) Lwm2m Client in Thread End Device

                I have included the anjay library to my component folder and the code is building without Error...

                The Connection for LWM2M Server in anjay_event_loop_run() getting an error as "Openthread radio buffer full"

                I have followed the AVsystem API documentation guide for Simple lwm2m client connection to server , instance and object registering get -> Done , But the Event loop connecting the Server shows an Buffer Size Full

                The Maximum Buffer Size for Openthread Radio Buffer is ->[100]
Mierunski commented 7 months ago

Hi Could you provide some more details? We are currently not supporting OpenThread in Anjay-esp32 module by default, it would require porting of socket layer. Did you do any work related to it?

Best Regards Mieszko

Hariprabhu13 commented 7 months ago

Hi @Mierunski , Kindly thanks for your reply, the Anjay Client is now working on my device. I have fixed the issue.

                     I have doubt in Object Creation, For the Light Control there is a example for RGB Led for Simple LED turn On and Off , Steps to implement the control , what is the API flow I should use...
Mierunski commented 7 months ago

Good to hear that issue is fixed! Regarding RGB Led implementation, there is example with Anjay Zephyr, the code should be similar to it to implement it by yourself https://github.com/AVSystem/Anjay-zephyr/blob/master/src/objects/led_color_light.c

You can follow documentation on how to generate boilerplate code for the object: https://avsystem.github.io/Anjay-doc/BasicClient/BC-ObjectImplementation.html

Hariprabhu13 commented 7 months ago

Thank you @Mierunski for Clarify the Method to Implement the Basic Client...

I would like to tell , that basic light control object Implemented and Tested ... It's working well.

Hariprabhu13 commented 7 months ago

Hi @Mierunski,

 In Client side --> How to Create the Custom Object, If I need XML file , please explain me how merge with espidf code to register that Custom Object ID....

I were confused how to get the Custom Object ID and How to Register it and use it from Client and Server Side