Hi,
In most of our usecases, we handle lwm2m response in a generic
way. (in this case, we must check types or use visitors)
In your case, you seem to know exactly what you get. You must do
something near of what you found...
(String)((LwM2mResource)lwm2mNode ).getValue().value
I'm ok, this is not really elegant, we should probably find
something better than that. If you have any idea ?
Simon
Le 12/01/2015 16:04, Georgi Huklev a
écrit :
Hi there,
I am playing around with leshan, however I couldn't figure out
how to get the data from a Lwm2mNode. Am I supposed to use a
Lwm2mNodeVisitor somehow?
This worked, but it does not feel right at all:
( (Value<String>)( (LwM2mResource)lwm2mNode ).getValue()
).value
Kind Regards,
Georgi
Meet us at Embedded
World on February 24-26 in Nuremberg (Stand 4A-550f).
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/leshan-dev
|