Hi,
Using nRF9160 - NCS 3.1.0
I am trying to implement the AT%XBANDLOCK at command into my Firmware, and I am struggling to set it with the nrf_modem_at_cmd() function. I have used this function for "AT+" commands with no issues, but I think "AT%" commands have to work a little differently
Using a AT Command passthrough firmware, I have verified that the functions definitely work. I make sure that CFUN=0 before hand, and then, as an initial test, just clear any bitmask that may be there using
sprintf(at_command, "AT%%XBANDLOCK=0"); err = nrf_modem_at_cmd(str, strlen(at_command)-1, at_command, NULL);
With and without NULL
#define at_command "AT%XBANDLOCK=0" rather than sprintf
I don't know how this would work with setting an AT% command though, because the function uses a printf-style variadic argument, so if I were to only use 1 '%', the first variadic argument would be %X (from AT%XBAND...), which would be fixed with a double % character
I can't find a wrapper function for XBANDLOCK, so I presume nrf_modem_at_cmd() is the way I should be doing it?
I may be missing something blatantly obvious but I cannot see it.