Library for handling subset of coap functionality by radio transmitter.

Dependencies:   nRF24L01P cantcoap

Dependents:   server2

Files at this revision

API Documentation at this revision

Comitter:
thewiztory
Date:
Fri Jan 25 02:10:16 2019 +0000
Parent:
4:9f635ab44d8e
Commit message:
-

Changed in this revision

coapRadio.lib Show diff for this revision Revisions of this file
coapServer.cpp Show annotated file Show diff for this revision Revisions of this file
radioWrapper.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/coapRadio.lib	Mon Jan 21 18:52:22 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://os.mbed.com/teams/IOT_GRZYBKI/code/coapRadio/#6a6f97ca5572
--- a/coapServer.cpp	Mon Jan 21 18:52:22 2019 +0000
+++ b/coapServer.cpp	Fri Jan 25 02:10:16 2019 +0000
@@ -36,7 +36,7 @@
     } else if(ret > 0) {
         CoapPDU request(requestBuffer, radioWrapper.packetSize(), ret);
         if (request.validate()) {
-            request.printHuman();
+            //request.printHuman();
             for (int i = 0; i < idQ.size(); ++i) { // check if messageId is known
                 if(idQ[i] == request.getMessageID()) {
                     if(request.getCode() == CoapPDU::COAP_POST) { // dla posta odpowiadamy pustym
--- a/radioWrapper.cpp	Mon Jan 21 18:52:22 2019 +0000
+++ b/radioWrapper.cpp	Fri Jan 25 02:10:16 2019 +0000
@@ -11,7 +11,7 @@
     }
     int ret = -1;
     while(t.read_ms() < timeout) {
-        for(int i = 0; i< 3; ++i) {
+        for(int i = 1; i <= 3; ++i) {
             ret = readFromPipe(buffer, len, i);
             if(ret >0) {
                 *pipe = i;