Hello! I’m trying to change frequency band on my mdot with following code (based on latest MTDOT-BOX-EVB-Factory-Firmware):
int32_t code;
if ((code = dot->setFrequencyBand(mDot::FB_EU868)) != mDot::MDOT_OK) {
std::string error = mDot::getReturnCodeString(code) + " - " + dot->getLastError();
logError("CANNOT SET BAND: %s", error.c_str());
}
logTrace("BAND: %s", mDot::FrequencyBandStr(dot->getFrequencyBand()).c_str());
but this code still printing “[TRACE] BAND: US915” on debug uart.
After some exploration I found that setFrequencyBand() in libmDot-GCC_ARM.a from libmDot-mbed5 and libmDot-dev-mbed5 repos have following stub:
Disassembly of section .text._ZN4mDot16setFrequencyBandERKh:
00000000 <mDot::setFrequencyBand(unsigned char const&)>:
0: 2000 movs r0, #0
2: 4770 bx lr
Does that mean building with gcc isn’t really supported/tested?