CoAP Device Server Client mit leshan Server

Dependencies:   EthernetInterface mbed-rtos mbed nsdl_lib

Fork of COAPmbed by smd.iotkit2.ch

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 main.cpp

Revision Date Message Actions
19:7830976ac327 2015-08-26 Fixer Endpoint Name durch Board + MAC ersetzt File  Diff  Annotate
18:17bdeb25e0a8 2015-08-07 Standardmaessig auf Eclipse Server zugesteuert File  Diff  Annotate
17:8ee737f79492 2015-06-21 Firmware und Location Attribute eingefuegt File  Diff  Annotate
16:b27c9d2b1a98 2015-06-21 Code bereinigt File  Diff  Annotate
15:fba25b7e63cd 2015-06-21 CoAP Device Server Client mit leshan Server File  Diff  Annotate
14:54c3708f7c3c 2015-04-17 Fixe laenge Boardname entfernt File  Diff  Annotate
13:3c205b19c540 2015-03-24 CoAP Device Server Client File  Diff  Annotate
11:99178da0f3fa 2015-02-04 Abgestimmt mit IoTKit File  Diff  Annotate
10:57352d0c287c 2015-01-18 Lokaler Server File  Diff  Annotate
9:18f4959c2bac 2015-01-18 CoAP Client Beispiel File  Diff  Annotate
8:cdf868ccae03 2014-08-04 Updated dependencies. File  Diff  Annotate
7:6b068978be9a 2013-10-22 Endpoint names are no longer constrained to a fixed length. Also changed default prefix to "mbed-" instead of "mbed-demo-" File  Diff  Annotate
6:442775856f5f 2013-10-21 Change comment; File  Diff  Annotate
4:15690450a797 2013-10-15 Changed endpoint prefix File  Diff  Annotate
3:52c1b649eb04 2013-10-15 Fixes buffer overflows, invalid server address and other issues. 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