Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] modify lifetime for bootstrap server

It's just an example to use the REST API. If you're not so familiar with python, feel free to adapt this to your preferred language or  use your preferred tools (e.g http://blogs.plexibus.com/2009/01/15/rest-esting-with-curl/).

Anyway, to use it just copy paste the code in a file (e.g. leshan.py), then use the python interpreter : "python leshan.py" in a terminal.
(of course you need to have python installed)

Le 16/11/2017 à 15:04, Giuseppe Melis a écrit :

Hi Simon,

How can I use this python script?

 

Thanks

Giuseppe

 

 
Giuseppe Melis
Field Test, Global IOT Cellular R&D
Link T:   +39 070 4603 248

giuseppe.melis@xxxxxxxxx
Link
www.telit.com
       
Link Link Link Link Link





Link
This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed.
The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination,
distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately. 

To the extent this email includes an offer to buy Telit products or an order confirmation, the offer or order confirmation is governed by Telit’s General Terms and Conditions of Sale, which are published here.

From: Simon Bernard [mailto:contact@xxxxxxxxxxxxxxx]
Sent: giovedì 16 novembre 2017 14:24
To: Giuseppe Melis <Giuseppe.Melis@xxxxxxxxx>
Subject: Re: [leshan-dev] modify lifetime for bootstrap server

 

Hi,

 

There is no way to change this via the Bootstrap Server Demo UI.

 

But you can use Bootstrap Server Demo REST API : https://github.com/eclipse/leshan/issues/374


HTH


Simon

 

Le 10/11/2017 à 23:21, Giuseppe Melis a écrit :

Hi members,

I have a leshan bootstrap server running on my linux machine and it works as well.

It was started in this way:

nohup sudo java -jar leshan/leshan-bsserver-demo/target/leshan-bsserver-demo-*-SNAPSHOT-jar-with-dependencies.jar > /var/log/leshan-bsserver-demo.log 2>&1 &.

Now the bootstrap server provides to the client the following server object resources:

00: 123       //short serverId

01: 20 sec  //lifetime

02: …

06: …

07: U   //binding

 

How could I change short serverId and lifetime?

I don’t find in the files the place where this setting could be modified.

 

Thanks

Regards

Giuseppe Melis

 

Giuseppe Melis

Field Test, Global IOT Cellular R&D

Link

T:   +39 070 4603 248


giuseppe.melis@xxxxxxxxx

Link

www.telit.com

       

Link

Link

Link

Link

Link





Link

This electronic message, including attachments, is intended only for the use of the individual or company named above or to which it is addressed.
The information contained in this message shall be considered confidential and proprietary, and may include confidential work product. If you are not the intended recipient, please be aware that any unauthorized use, dissemination,
distribution or copying of this message is strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and deleting this email immediately. 

To the extent this email includes an offer to buy Telit products or an order confirmation, the offer or order confirmation is governed by Telit’s General Terms and Conditions of Sale, which are published here.

 

 




_______________________________________________
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