Hi I've had a look at the implementation pointed out by José. I cannot get the Leshan server to register the client though. The client gets stuck with output
-> State: STATE_REGISTERING I think the IP addresses or possibly some bootstrapping procedure might be the problem. I changed the IP address in the makefile to [::1]. Wireshark shows a packet being sent to port 53 over UDP. Should this not be all the client information sent to port 5683 using CoAP? What am I doing wrong? Regards Brenton On Wed, Apr 10, 2019 at 9:06 PM Leandro Lanzieri < leandro.lanzi...@haw-hamburg.de> wrote: > Hi Brenton, > > As José pointed out, that PR only implements some basic objects. To > perform the update the device should expose a "Firmware Update Object" > [2]. > > In the Wakaama repo there is an example of a basic structure for that > object [3]. Take a look of how I added the Light Control object to have > an idea on how the package can be extended with new objects, and how to > instantiate them. The example application should work. > > As Ken mentioned any comments or improvements on the PR are very > welcome. > > Cheers, > Leandro. > > [2]: > > http://www.openmobilealliance.org/tech/profiles/LWM2M_Firmware_Update-v1_0_2.xml > > [3]: > > https://github.com/eclipse/wakaama/blob/master/examples/client/object_firmware.c > > On Wed, 2019-04-10 at 14:50 +0100, Ken Bannister wrote: > > Thanks, José. I have been reviewing the PR, and I agree it definitely > > is > > usable. I think Leandro has addressed everything to this point. > > > > Brenton, as you can see on the PR, you should be able to build and > > run > > the example. Please add your comments on that PR as well. > > > > Thanks, > > Ken > > > > On 4/10/19 2:34 PM, José Alamos wrote: > > > Hello Brenton, > > > > > > There's an open PR with a basic LWM2M Wakaama client for RIOT here > > > [1]. > > > You can maybe give it a look. > > > > > > Does this solve your issue? > > > > > > Cheers, > > > José > > > > > > [1]: https://github.com/RIOT-OS/RIOT/pull/11036 > > > > > > On Wed, 2019-04-10 at 15:11 +0200, Brenton Chetty wrote: > > > > Hey guys, sorry to worry you'll. I just graduated, and I'm an > > > > intern. > > > > I need to update a STM32 device over the air using a Leshan > > > > Server, > > > > and a Wakaama Client (RIOT). I managed to send a .bin file from > > > > the > > > > Server to the RIOT_Wakaama client using the Linux native > > > > interface. I > > > > used the 2015 RIOT_Wakaama client example created by Robby14 > > > > (Github), as i do not know how to use the Wakaama pkg in the RIOT > > > > base. Any ideas on how i should proceed with this task? How do I > > > > use > > > > the wakaama pkg? Any advice would be greatly appreciated! > > > > > > > > With thanks > > > > Brenton > > > > _______________________________________________ > > > > devel mailing list > > > > devel@riot-os.org > > > > https://lists.riot-os.org/mailman/listinfo/devel > > > > > > _______________________________________________ > > > devel mailing list > > > devel@riot-os.org > > > https://lists.riot-os.org/mailman/listinfo/devel > > > > _______________________________________________ > > devel mailing list > > devel@riot-os.org > > https://lists.riot-os.org/mailman/listinfo/devel > -- > Leandro Lanzieri Rodriguez > Hamburg University of Applied Sciences > Berliner Tor 7, 20099 Hamburg, Germany, Room 4.81c > Dept. Computer Science, Internet Technologies Group > http://inet.haw-hamburg.de/members/leandro-lanzieri > Phone: +49 40 42875 - 8426 > > _______________________________________________ > devel mailing list > devel@riot-os.org > https://lists.riot-os.org/mailman/listinfo/devel >
_______________________________________________ devel mailing list devel@riot-os.org https://lists.riot-os.org/mailman/listinfo/devel