Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Firmware Update Testing using leshan standalone server

Hi,
Thank you for replying. 
Actually I am already past the error that you mentioned. But I am getting 'Bad_Request' status when I give some hexBinary value and try to write it on resource. It is not showing any error. In Coap log messages, in payload, it is showing the string corresponding to the hexbinary value I give.In Client it is showing the usual write message log. 
So write button in 'Package resource' turning red instead of green(and showing Bad_Request) is some implementation gap or I am missing something?
And yes, giving a option to choose file would be great.

Thanks

-Kailash Kumar




On Thu, Jun 4, 2015 at 3:32 PM, Simon Bernard <contact@xxxxxxxxxxxxxxx> wrote:
Hi,
 I suppose you try to perform a write operation on 'Package' Resource via the leshan-standalone UI.
 
 You probably face an error like that ?
Unable to write resource /5/0/0 for xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx : 400 contains illegal character for hexBinary: myvalueforpackage

In fact, the 'Package' resource is an opaque/binary resource. For now the only way to send opaque/binary from UI is to paste the Hexabinary string corresponding in the write field.

We should probably implement an enhancement which allow to select a file from the user file system for opaque/binary resource.

HTH.

Simon


Le 04/06/2015 11:41, Kailash Kumar a écrit :
Hi ,

I am using the LeshanClientExample and leshan-standalone server on localhost for testing the lwm2m basic functionalities. I created a new Firmware Update Object in the client and was able to perform read/write/both operations on all resources except 'Package' resource.

Could you please provide a clue on how to test the write operation on 'Package' resource of 'Firmware Update' Object? Any help would be highly appreciated.


--
Kailash Kumar



_______________________________________________
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




--
Kailash Kumar
B.Tech in Electrical Engineering
IIT Delhi, India
+91-7838752742

Back to the top