Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wakaama-dev] Write method format issue

Hello,

1.My current version is :
wireshark 1.10.6 (v1.10.6 from master-1.10)

2. Yes, writing "foobar" doesn't really make sense, but no matter what we tried to write it would error out since the client expected something with TLV encoding. After reading the specs I understand that writing to an instance should be possible.

If i try to write something like you suggested :  write 0 /1024/11/1 66
It does work and a "read" can confirm it.

My question now would be how can you write to an instance ? Or do you have any further documentation with everything the wakaama code has built in at the moment or at least more examples with all its functionality ?

Thank you,
Alexandru Caciulescu

2015-08-06 16:05 GMT+01:00 Kraus Achim (INST/ESY4) <Achim.Kraus@xxxxxxxxxxxx>:

Hello,

 

just my first answer:

1. the screenshot shows:

Opt Count: 0

But there are options (at least the uri) shown as payload.

(02 31 31 for the „11“ in the uri, followed by ff for the payload).

(May be your Wireshark is “old”. Which version do you use?)

 

2. /1024/11 is a object instance. What should the object instance do with the text “foobar”?

That doesn’t make sense.

 

Could you therefore try to test

 

write 0 /1024/11/1 49

What is your result?

 

 

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

 

achim.kraus@xxxxxxxxxxxx

 

Registered office: Berlin, Register court: Amtsgericht Charlottenburg, HRB 148411 B

Executives: Dr.-Ing. Rainer Kallenbach; Michael Hahn

 

 

Von: wakaama-dev-bounces@xxxxxxxxxxx [mailto:wakaama-dev-bounces@xxxxxxxxxxx] Im Auftrag von Alexandru Razvan Caciulescu
Gesendet: Donnerstag, 6. August 2015 16:40
An: wakaama-dev@xxxxxxxxxxx
Cc: Hauke Pete
Betreff: [wakaama-dev] Write method format issue

 

Hello,

 

We are trying to integrate LWM2M with RIOT-OS and we are currently using the Wakaama code as a starting point. While following the client/server example provided by wakaama we are experimenting with the Write method unsuccessfully and we noticed something strange in the actual payload of the coap packets in wireshark.

The command we used : write 0 /1024/11 foobar

besides the "foobar" string the payload does contain some additional bytes which are not part of a TLV encoding as the client expects them, thus resulting in an "internal server error".

Does the Write method expect the payload to be directly given in a TLV encoded string ? Or which would be the correct way to use the Write method in this case?

 

Thank you,

Alexandru Caciulescu

 


_______________________________________________
wakaama-dev mailing list
wakaama-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wakaama-dev

Attachment: write-works.png
Description: PNG image

Attachment: read_confirms.png
Description: PNG image


Back to the top