The file is:
src/aws_iot_lib/network_mbedtls_wrapper.cpp
server_fd.fd = (int) vm_socket(t_addr_in.sin_family, t_ai_socktype,
t_ai_protocol);
if (server_fd.fd < 0) {
ret_connect = MBEDTLS_ERR_NET_SOCKET_FAILED;
Serial.print("vm_socket error and ret value is ");
Serial.println(server_fd.fd);
return ret;
}
The file is: src/aws_iot_lib/network_mbedtls_wrapper.cpp
server_fd.fd = (int) vm_socket(t_addr_in.sin_family, t_ai_socktype, t_ai_protocol); if (server_fd.fd < 0) { ret_connect = MBEDTLS_ERR_NET_SOCKET_FAILED; Serial.print("vm_socket error and ret value is "); Serial.println(server_fd.fd); return ret; }
The return value should be server_fd.fd