Changeset 468
- Timestamp:
- Jun 26, 2021, 10:00:27 PM (2 years ago)
- Location:
- azure_iot_hub_f767zi/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub_f767zi/trunk/app_iothub_client/src/esp_at_socket.c
r457 r468 1593 1593 1594 1594 ER ret; 1595 char temp[ 64];1595 char temp[128]; 1596 1596 sprintf(temp, "AT+CIPSTART=%d,\"%s\",\"%s\",%d\r\n", connection->link_id, connection->ssl, host, port); 1597 1597 ret = esp_serial_write(connection->esp_state, temp, &res_kind, 10000); -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/Makefile
r464 r468 51 51 OBJECTS += c-utility/adapters/lock_toppers.o 52 52 OBJECTS += c-utility/adapters/platform_toppers.o 53 OBJECTS += c-utility/adapters/socketio_lwip.o 53 54 OBJECTS += c-utility/adapters/socketio_esp_at.o 54 55 OBJECTS += c-utility/adapters/threadapi_toppers.o … … 65 66 OBJECTS += c-utility/src/constmap.o 66 67 OBJECTS += c-utility/src/crt_abstractions.o 67 #OBJECTS += c-utility/src/dns_resolver_sync.o68 OBJECTS += c-utility/src/dns_resolver_sync.o 68 69 OBJECTS += c-utility/src/doublylinkedlist.o 69 70 OBJECTS += c-utility/src/gb_rand.o -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/adapters/platform_toppers.c
r464 r468 50 50 } 51 51 52 int use_wifi = 0; 53 52 54 const IO_INTERFACE_DESCRIPTION* platform_get_default_tlsio(void) 53 55 { 54 return tlsio_esp_at_get_interface_description(); 55 //return tlsio_wolfssl_get_interface_description(); 56 if (use_wifi) { 57 return tlsio_esp_at_get_interface_description(); 58 } 59 else { 60 return tlsio_wolfssl_get_interface_description(); 61 } 56 62 } 57 63 -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/adapters/socketio_lwip.c
r457 r468 14 14 #undef _BSD_SOURCE 15 15 #undef SOCKETIO_BERKELEY_UNDEF_BSD_SOURCE 16 #endif 17 18 #ifndef MSG_NOSIGNAL 19 #define MSG_NOSIGNAL 0 16 20 #endif 17 21 … … 33 37 #include <netdb.h> 34 38 #include <unistd.h> 39 //#include <fcntl.h> 35 40 #include <errno.h> 36 41 #include "azure_c_shared_utility/singlylinkedlist.h" … … 93 98 IO_STATE io_state; 94 99 SINGLYLINKEDLIST_HANDLE pending_io_list; 95 unsigned char recv_bytes[ RECEIVE_BYTES_VALUE];100 unsigned char recv_bytes[XIO_RECEIVE_BUFFER_SIZE]; 96 101 DNSRESOLVER_HANDLE dns_resolver; 97 102 } SOCKET_IO_INSTANCE; … … 932 937 signal(SIGPIPE, SIG_IGN); 933 938 934 ssize_t send_result = send(socket_io_instance->socket, buffer, size, 0);939 ssize_t send_result = send(socket_io_instance->socket, buffer, size, MSG_NOSIGNAL); 935 940 if ((size_t)send_result != size) 936 941 { … … 946 951 size_t bytes_sent = (send_result < 0 ? 0 : send_result); 947 952 948 if (add_pending_io(socket_io_instance, buffer + bytes_sent, size - bytes_sent, on_send_complete, callback_context) != 0)953 if (add_pending_io(socket_io_instance, (const unsigned char*)buffer + bytes_sent, size - bytes_sent, on_send_complete, callback_context) != 0) 949 954 { 950 955 LogError("Failure: add_pending_io failed."); … … 993 998 } 994 999 995 ssize_t send_result = send(socket_io_instance->socket, pending_socket_io->bytes, pending_socket_io->size, 0);1000 ssize_t send_result = send(socket_io_instance->socket, pending_socket_io->bytes, pending_socket_io->size, MSG_NOSIGNAL); 996 1001 if ((send_result < 0) || ((size_t)send_result != pending_socket_io->size)) 997 1002 { … … 1045 1050 do 1046 1051 { 1047 received = recv(socket_io_instance->socket, socket_io_instance->recv_bytes, RECEIVE_BYTES_VALUE, 0);1052 received = recv(socket_io_instance->socket, socket_io_instance->recv_bytes, XIO_RECEIVE_BUFFER_SIZE, MSG_NOSIGNAL); 1048 1053 if (received > 0) 1049 1054 { -
azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/pal/toppers/socket_async_os.h
r457 r468 7 7 // For Linux systems 8 8 #include <sys/types.h> 9 //#include <lwip/sockets.h>9 #include <lwip/sockets.h> 10 10 #include <sys/select.h> 11 11 #include <sys/errno.h> 12 12 #include <unistd.h> 13 //#include <netdb.h>13 #include <netdb.h> 14 14 -
azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/user_settings.h
r464 r468 49 49 #define XBADFILE NULL 50 50 #define XFGETS fgets 51 #define XFPRINTF fprintf 51 52 52 53 struct WOLFSSL;
Note:
See TracChangeset
for help on using the changeset viewer.