Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU6050 Grove_temperature
Diff: communication/LoRaWanComm.cpp
- 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); }