I added functionality to get the RSSI, BER, and Cell Neighbor for reporting connection issues to M2X
Dependencies: WncControllerK64F
Diff: WNCInterface.cpp
- Revision:
- 30:0b1a174c0d4f
- Parent:
- 25:52bad4105cac
diff -r dceb8da78e6d -r 0b1a174c0d4f WNCInterface.cpp --- a/WNCInterface.cpp Fri Mar 24 22:02:33 2017 +0000 +++ b/WNCInterface.cpp Thu Apr 18 21:29:12 2019 +0000 @@ -142,6 +142,30 @@ M_ULOCK; return NULL; } +// Get RSSI and return it - Nate +int16_t WNCInterface::getRSSI() { + M_LOCK; + int16_t fRssi; + fRssi = _pwnc->getDbmRssi(); + M_ULOCK; + return fRssi; +} +// Get Ber and return it - Nate +int16_t WNCInterface::get3gBer() { + M_LOCK; + int16_t fBer; + fBer = _pwnc->get3gBer(); + M_ULOCK; + return fBer; +} +// Read Cell neighbor and return it - Nate +string * WNCInterface::readCellNeighbor_wnc(){ + M_LOCK; + string * fN; + fN = _pwnc->at_readCellNeighbor_wnc(); + M_ULOCK; + return fN; +} // // update the networking stats and return the Gateway Address @@ -189,3 +213,4 @@ return NULL; } +