Sodaq SARA AFF Vodafone. Failed to connect

Hi. I received my new Sodaq board last week. I connected it to allthingspeak without problems: data was loaded from the board to the pinboard correctly.
Today, I upload a new program from Arduino/examples/SODAQ NBIoT but, when I run the code in the Sodaq board, I have this message: “Failed to connect!”

Some of the code:
const char* apn = “nb.inetd.gdsp”;
const char* cdp = “IP”;
const uint8_t band = 20;
const char* forceOperator = “20404”;

if (nbiot.connect(apn, cdp, forceOperator, band)) {
    DEBUG_STREAM.println("Connected succesfully!");
}
else {
    DEBUG_STREAM.println("Failed to connect!");
    return;

Regards

More info:
AT+CGDCONT=1,“IP”,“nb.inetd.gdsp”
OK

AT+CGDCONT?
+CGDCONT: 1,“IP”,“nb.inetd.gdsp”,“10.21.38.nnn”,0,0,0,0
OK

AT+CFUN=1
OK

AT+COPS=1,2,“20404”
OK
AT+CGPADDR
+CGPADDR: 1,10.21.38.nnn
OK

AT+USOCR=17
+USOCR: 0
OK

AT+CSQ
+CSQ: 99,99
OK

AT+CGATT?
+CGATT: 0
OK

Hi @David,

The example nbIOT_test doesn’t work with Vodafone. Vodafone isn’t supporting CoAP.
The example sketch nbIOT_test_udp should work!

Best regards,
Jan

Hi, @Jan.

Thank you for the answer.
Let me know if you can help me again :wink: :

When I received the Sodaq Sara AFF Vodafone board, it came with a program preloaded that connect succesfully with vodafone.allthingstalk.com. After that, I changed that software with an arduino example.
In order to replace and test, could you main say me where can I download that “preloaded” program?

Thanks in advance

Hi @David,

You can download the tool to install the default software on this page:
https://vodafoneiot.sodaq.com/quick-start/next-steps/

Best regards,
Jan