diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-12-03 12:15:10 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-12-03 12:15:10 -0600 |
commit | c3d181e2c45f8b4ddc6572a9834082413fb91817 (patch) | |
tree | c908d8acc58b7eb71769cfa2bdb81f3a3f866ddd /LoRaHandler | |
parent | 2cd88147a991bed2e0e71bbc028078bd15838161 (diff) | |
download | mtdot-box-evb-factory-firmware-c3d181e2c45f8b4ddc6572a9834082413fb91817.tar.gz mtdot-box-evb-factory-firmware-c3d181e2c45f8b4ddc6572a9834082413fb91817.tar.bz2 mtdot-box-evb-factory-firmware-c3d181e2c45f8b4ddc6572a9834082413fb91817.zip |
turn off acks and receive windows for survey data packets, use mDot handle for data rate, power, etc instead of lora handler
Diffstat (limited to 'LoRaHandler')
-rw-r--r-- | LoRaHandler/LoRaHandler.cpp | 31 | ||||
-rw-r--r-- | LoRaHandler/LoRaHandler.h | 3 |
2 files changed, 0 insertions, 34 deletions
diff --git a/LoRaHandler/LoRaHandler.cpp b/LoRaHandler/LoRaHandler.cpp index 7ba05f5..47b0e01 100644 --- a/LoRaHandler/LoRaHandler.cpp +++ b/LoRaHandler/LoRaHandler.cpp @@ -87,28 +87,6 @@ LoRaHandler::LoRaHandler(osThreadId main) _ping.status = false; } -bool LoRaHandler::setDataRate(uint8_t rate) { - int32_t res; - _mutex.lock(); - res = _dot->setTxDataRate(rate); - _mutex.unlock(); - if (res == mDot::MDOT_OK) - return true; - - return false; -} - -bool LoRaHandler::setPower(uint32_t power) { - int32_t res; - _mutex.lock(); - res = _dot->setTxPower(power); - _mutex.unlock(); - if (res == mDot::MDOT_OK) - return true; - - return false; -} - bool LoRaHandler::ping() { return action(l_ping); } @@ -151,15 +129,6 @@ LoRaHandler::LoRaPing LoRaHandler::getPingResults() { return ping; } -uint32_t LoRaHandler::getNextTx() { - uint32_t ms; - _mutex.lock(); - ms = _dot->getNextTxMs(); - _mutex.unlock(); - - return ms; -} - uint32_t LoRaHandler::getJoinAttempts() { uint32_t val; diff --git a/LoRaHandler/LoRaHandler.h b/LoRaHandler/LoRaHandler.h index 1a68668..a715d03 100644 --- a/LoRaHandler/LoRaHandler.h +++ b/LoRaHandler/LoRaHandler.h @@ -27,15 +27,12 @@ class LoRaHandler { LoRaHandler(osThreadId main); ~LoRaHandler(); - bool setDataRate(uint8_t rate); - bool setPower(uint32_t power); bool ping(); bool send(std::vector<uint8_t> data); bool join(); bool action(uint8_t cmd); LoRaStatus getStatus(); LoRaPing getPingResults(); - uint32_t getNextTx(); uint32_t getJoinAttempts(); void resetJoinAttempts(); |