To: leshan-dev@xxxxxxxxxxx
From: contact@xxxxxxxxxxxxxxx
Date: Tue, 12 Apr 2016 15:04:46 +0200
Subject: Re: [leshan-dev] Getting Read request response
It seems you not use the last version of Leshan. Is this expected ?
With the last version :
ReadResponse response = server.send(client, new
ReadRequest(3,0,13);
LwM2mSingleResource resource = ((LwM2mSingleResource)
response.getContent());
resource.getValue();
resource.getType();
or
ReadResponse response = server.send(client, new
ReadRequest(3,0,6);
LwM2mMultipleResource resource = ((LwM2mMultipleResource)
response.getContent());
resource.getValues();
resource.getType();
Le 12/04/2016 14:26, Bakre HOURMAT
ALLAH a écrit :
Hi everybody
When I did a read request it
returns to me a response like this:
LwM2mResource [id=13,
values=[Value [value=Tue Apr 12 12:25:37 WEST 2016,
type=TIME]],
isMultiInstances=false].
My question is how to get
the value and the type without getting all this
data.
Thank you.
_______________________________________________
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
_______________________________________________
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