Hi,
Expecting a numerical location is indeed a bug. This is a consequence of wakaama test server storing clients under /rd/ShortID.
The location URI can be anything under “/rd/”. Since it is stored as-is in lwm2m_server_t::location, this should be easy to fix.
Regards,
David Navarro
From: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx]
On Behalf Of Kraus Achim (INST/ESY4)
Sent: Thursday, 26 February, 2015 16:43
To: wakaama-dev@xxxxxxxxxxx
Subject: [wakaama-dev] specification of uri.c / lwm2m_uri_t * uri_decode(multi_option_t *uriPath)
Hi All,
„uri_decode“ fails to parse a „/{location}“ uri (registration update, LWM2M TS, page 58),
if the second part is not a decimal number. I didn’t find explicit information about the
format of this second part in the LWM2M TS, but there is an example on page 59 with
„/rd/5aef“, which therefore fails to be parsed with „uri_decode“.
Mit freundlichen Grüßen / Best regards
Achim Kraus
Bosch Software Innovations GmbH
Communications (INST/ESY4)
Stuttgarter Straße 130
71332 Waiblingen
GERMANY
www.bosch-si.de
www.blog.bosch-si.com
Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B
Executives: Dr.-Ing. Rainer Kallenbach; Michael Hahn