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
|
|
![Link](jpg4xngGubObN.jpg)
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.
|
|
|
|
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 :
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:
How could I change short serverId
and lifetime?
I don’t find in the files the
place where this setting could be modified.
|
|
![Link](jpgZofEtTQzki.jpg)
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
|