Anderson Cunha / sgam_mdw_NUCLEOF429ZI_impl

Dependencies:   MPU6050 Grove_temperature

Dependents:   sgam_mdw_test

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;
}