ConnectivityFoundry / AwaLWM2M

Awa LWM2M is an implementation of the OMA Lightweight M2M protocol in C.
BSD 3-Clause "New" or "Revised" License
102 stars 66 forks source link

Serdes fails to use JSON with Leshan #364

Open dsuni opened 6 years ago

dsuni commented 6 years ago

Steps to reproduce:

1) Create a standard bootstrap.conf: ServerURI=coap://leshan.eclipse.org:5683 SecurityMode=0 PublicKey=[PublicKey] SecretKey=[SecretKey] ServerID=1 HoldOffTime=30 ShortServerID=1 Binding=U LifeTime=30 DefaultMinimumPeriod=1 DefaultMaximumPeriod=-1 DisableTimeout=86400 NotificationStoringWhenDisabledOrOffline=true

2) Run awa_bootstrapd --port 15685 --config bootstrap.conf 3) Run awa_clientd --endPointName somethingrandom --bootstrap coap://127.0.0.1:15685 --verbose 4) Go to http://leshan.eclipse.org/#/clients/somethingrandom 5) Set single value format to JSON 6) Observe some values (doesn't matter which ones)

Expected result: Operation goes through.

Actual result: [ERROR] [lwm2m_serdes.c:119] Serialiser not found for type 11543 Leshan receives a 2.00 response, which is not valid.

Reproducible: Always

Version used: 68cab63d636b0e8d88905ebc022b134269323293 (28 May)