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
communication/LoRaWanComm.cpp
- Committer:
- AndersonIctus
- Date:
- 2019-06-26
- Revision:
- 7:8db3e62ac4e2
- Parent:
- 6:806043bf1a2c
- Child:
- 8:e00fa6ea253c
File content as of revision 7:8db3e62ac4e2:
#include "sgam_mdw.h" #include "mbed.h" #include "mbed_events.h" #include "LoRAWanComm.h" LoRAWanComm::LoRAWanComm(const char* parameters) { } LoRAWanComm::~LoRAWanComm() { } int LoRAWanComm::initialize(LoraData* data) { D_LOG("INITIALIZE %s! \r\n", this->getName() ); // INICIANDO O LORAWAN !! // lorawan(radio); // // ev_queue // // 1 - Initialize LoRaWAN stack // if (lorawan.initialize(&ev_queue) != LORAWAN_STATUS_OK) { // printf("LoRa initialization failed! \r\n"); // return -1; // } return 1; } int LoRAWanComm::finalize() { D_LOG("FINALIZE %s! \r\n", this->getName() ); return 1; } const char* LoRAWanComm::getName() { return "LoRAWAN"; } int LoRAWanComm::connect() { return -1; } int LoRAWanComm::disconnect() { return -1; } //////////////////////////////////////////////////////////////////////////////////// int LoRAWanComm::write(const char* data) { return 0; } int LoRAWanComm::read(char* buffer, int offset) { return 0; }