Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Lwm2mNode and Lwm2mNodeVisitor

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


Try Cumulocity free at www.cumulocity.com!

Meet us at Embedded World on February 24-26 in Nuremberg (Stand 4A-550f).
Meet us at GSMA Mobile World Congress on March 2-5 in Barcelona.


_______________________________________________
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


Back to the top