Anderson Cunha / sgam_mdw_NUCLEOF429ZI_impl

Dependencies:   MPU6050 Grove_temperature

Dependents:   sgam_mdw_test

Revision:
11:14864dee8646
Parent:
10:d2ce206bd94e
Child:
13:2dda4a91be01
--- a/communication/LoRaWanComm.cpp	Sun Jul 07 12:30:40 2019 -0300
+++ b/communication/LoRaWanComm.cpp	Thu Jul 11 22:28:25 2019 -0300
@@ -14,7 +14,7 @@
     // INICIANDO O LORAWAN !!
     this->data = data;
     if(data->getCallBack() == NULL) {
-        D_LOG("Yoou must pass a call bak method to LoraData before of initialization process! \r\n");
+        D_LOG("You must pass a call bak method to LoraData before the initialization process! \r\n");
         return FALSE;
     }
 
@@ -75,9 +75,10 @@
 
 ////////////////////////////////////////////////////////////////////////////////////
 int LoRAWanComm::write(const char* data) {
+    
     return 0;
 }
 
-int LoRAWanComm::read(char* buffer, int offset) {
-    return 0;
+int LoRAWanComm::read(unsigned char* buffer, int offset) {
+    return lorawan->receive(data->read_port, buffer, offset, data->read_flags);
 }