![](/media/cache/group/ep_srxDLMd.webp.50x50_q85.jpg)
CoAP Device Server Client mit leshan Server
Dependencies: EthernetInterface mbed-rtos mbed nsdl_lib
Fork of COAPmbed by
Sandbox Server
Eclipse stellt einen Testserver unter http://leshan.eclipse.org/ zur Verfügung. Das Programm verbindet sich mit diesem und ist unter mbed-k64f... erreichbar.
Installation lokale Version leshan
wget https://hudson.eclipse.org/leshan/job/leshan/lastSuccessfulBuild/artifact/leshan-server-demo.jar java -jar ./leshan-server-demo.jar
cURL
Die Funktionen können mittels cURL oder Browser wie folgt getestet werden:
# Alle Clients abfragen (Antwort im JSON Format) curl -X GET http://localhost:8080/api/clients # Wert von LED2 abfragen (Antwort im text/plain Format) curl -X GET http://localhost:8080/api/clients/mbed-k64f-1234/10/0/2 # Wert für LED2 setzen curl -X GET -vvv http://localhost:8080/api/clients/mbed-k64f-1234/10/0/2 -H "Content-Type: text/plain" -d "10"
Revisions of nsdl_lib.lib
Revision | Date | Message | Actions |
---|---|---|---|
8:cdf868ccae03 | 2014-08-04 | Updated dependencies. | File Diff Annotate |
5:c257ee923598 | 2013-10-21 | Changed location of NSDL library | File Diff Annotate |
2:7e489126fe7a | 2013-10-15 | Code refactoring. | File Diff Annotate |
1:e35d7f10999a | 2013-10-15 | Bug fixed + minor modifications | File Diff Annotate |
0:2edbfea18d23 | 2013-10-09 | Adding nsdl example app | File Diff Annotate |