MediaTek-Labs / aws_mbedtls_mqtt

The source code to use mbedTLS library to connect to AWS mqtt IOT server.
62 stars 34 forks source link

Incorrect return value #14

Open rsprat opened 7 years ago

rsprat commented 7 years ago

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