Hello :)
After upgrading the modem firmware of the nRF9160 to version 1.1.0 (mfw_nrf9160_1.1.0.zip) the call to getaddrinfo returns error 12.
If I downgrade to version 1.0.1 everything works as expected and the ip address is resolved.
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
int err;
struct addrinfo *result;
struct addrinfo hints = {
.ai_family = AF_INET,
.ai_socktype = socktype
};
char ipv4_addr[NET_IPV4_ADDR_LEN];
err = getaddrinfo(name, NULL, &hints, &result);
if (err) {
LOG_ERR("ERROR: getaddrinfo failed %d %s", err, strerror(err));
return err;
}
--> app: ERROR: getaddrinfo failed 12 Not enough space