ublox-cellular-base_r4
Diff: UbloxCellularBase.cpp
- Revision:
- 31:b0a6a610d114
- Parent:
- 30:38230504a646
- Child:
- 32:9497868cf171
--- a/UbloxCellularBase.cpp Tue Aug 27 18:38:29 2019 +0500 +++ b/UbloxCellularBase.cpp Thu Aug 29 16:52:05 2019 +0500 @@ -1541,6 +1541,22 @@ return status; } + +bool UbloxCellularBase::get_band_bitmask(uint64_t *m1_bitmask, uint64_t *nb1_bitmask) { + + bool status = false; + int eBandMastRat0, eBandMastRat1; + + LOCK(); + + if(_at->send("AT+UBANDMASK?") && _at->recv("+UBANDMASK: %d,%llu,%d,%llu", &eBandMastRat0, m1_bitmask, &eBandMastRat1, nb1_bitmask) && _at->recv("OK")) { + + status = true; + } + UNLOCK(); + + return status; +} #endif //TARGET_UBLOX_C030_R41XM #ifdef TARGET_UBLOX_C030_R412M