Skip to content

Instantly share code, notes, and snippets.

@djom202
Created November 20, 2024 22:01
Show Gist options
  • Save djom202/e388ec8ced28f5c68b84dba615f19fa5 to your computer and use it in GitHub Desktop.
Save djom202/e388ec8ced28f5c68b84dba615f19fa5 to your computer and use it in GitHub Desktop.
Issue with Simultaneous Connections to AWS IoT Core and Arduino Cloud
16:43:02.112 -> Setting up the server for AWS
16:43:02.112 -> Wifi CONNECTED
16:43:02.144 -> RRSI: -62
16:43:02.144 -> Setting up the server for AWS
16:43:02.144 -> [175335][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:43:02.208 -> [175397][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:44:24.597 -> �������0�!�d��10��Јb�Connecting to Wi-Fi...NOT CONNECTED
16:44:27.491 -> Connecting to Wi-Fi...E (5499) wifi:sta is connecting, return error
16:44:27.554 -> [ 2648][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:27.587 -> NOT CONNECTED
16:44:28.583 -> Connecting to Wi-Fi...E (6578) wifi:sta is connecting, return error
16:44:28.615 -> [ 3727][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:28.679 -> NOT CONNECTED
16:44:29.650 -> Connecting to Wi-Fi...E (7657) wifi:sta is connecting, return error
16:44:29.714 -> [ 4806][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:29.747 -> NOT CONNECTED
16:44:30.749 -> Connecting to Wi-Fi...E (8736) wifi:sta is connecting, return error
16:44:30.781 -> [ 5885][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:30.813 -> NOT CONNECTED
16:44:31.814 -> Connecting to Wi-Fi...E (9815) wifi:sta is connecting, return error
16:44:31.846 -> [ 6964][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:31.910 -> NOT CONNECTED
16:44:32.906 -> Connecting to Wi-Fi...E (10894) wifi:sta is connecting, return error
16:44:32.938 -> [ 8043][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:32.970 -> NOT CONNECTED
16:44:33.968 -> Connecting to Wi-Fi...E (11973) wifi:sta is connecting, return error
16:44:34.000 -> [ 9122][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:34.064 -> NOT CONNECTED
16:44:35.062 -> Connecting to Wi-Fi...E (13052) wifi:sta is connecting, return error
16:44:35.094 -> [ 10201][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:35.094 -> [ 10201][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:35.126 -> NOT CONNECTED
16:44:36.122 -> Connecting to Wi-Fi...E (14131) wifi:sta is connecting, return error
16:44:36.186 -> [ 11280][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:36.219 -> NOT CONNECTED
16:44:37.216 -> Connecting to Wi-Fi...E (15210) wifi:sta is connecting, return error
16:44:37.248 -> [ 12359][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:37.280 -> NOT CONNECTED
16:44:38.311 -> Connecting to Wi-Fi...E (16289) wifi:sta is connecting, return error
16:44:38.343 -> [ 13438][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:38.376 -> NOT CONNECTED
16:44:39.377 -> Connecting to Wi-Fi...E (17368) wifi:sta is connecting, return error
16:44:39.409 -> [ 14517][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:39.441 -> NOT CONNECTED
16:44:40.440 -> Connecting to Wi-Fi...E (18447) wifi:sta is connecting, return error
16:44:40.504 -> [ 15596][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:40.537 -> NOT CONNECTED
16:44:41.537 -> Connecting to Wi-Fi...NOT CONNECTED
16:44:42.534 -> Connecting to Wi-Fi...E (20528) wifi:sta is connecting, return error
16:44:42.566 -> [ 17677][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:42.598 -> NOT CONNECTED
16:44:43.625 -> Connecting to Wi-Fi...E (21607) wifi:sta is connecting, return error
16:44:43.657 -> [ 18756][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:43.690 -> NOT CONNECTED
16:44:44.687 -> Connecting to Wi-Fi...E (22686) wifi:sta is connecting, return error
16:44:44.719 -> [ 19835][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:44.783 -> NOT CONNECTED
16:44:45.781 -> Connecting to Wi-Fi...E (23765) wifi:sta is connecting, return error
16:44:45.813 -> [ 20914][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:45.846 -> NOT CONNECTED
16:44:46.842 -> Connecting to Wi-Fi...E (24844) wifi:sta is connecting, return error
16:44:46.874 -> [ 21993][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:46.939 -> NOT CONNECTED
16:44:47.941 -> Connecting to Wi-Fi...E (25923) wifi:sta is connecting, return error
16:44:47.973 -> [ 23072][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:48.006 -> NOT CONNECTED
16:44:50.130 -> [ 25230][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:50.162 -> NOT CONNECTED
16:44:51.163 -> Connecting to Wi-Fi...E (29160) wifi:sta is connecting, return error
16:44:51.195 -> [ 26309][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:51.260 -> NOT CONNECTED
16:44:52.293 -> Connecting to Wi-Fi...E (30239) wifi:sta is connecting, return error
16:44:52.293 -> [ 27388][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:52.376 -> NOT CONNECTED
16:44:53.373 -> Connecting to Wi-Fi...E (31318) wifi:sta is connecting, return error
16:44:53.373 -> [ 28467][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:53.410 -> NOT CONNECTED
16:44:54.413 -> Connecting to Wi-Fi...E (32397) wifi:sta is connecting, return error
16:44:54.445 -> [ 29546][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:54.478 -> NOT CONNECTED
16:44:55.478 -> Connecting to Wi-Fi...E (33476) wifi:sta is connecting, return error
16:44:55.512 -> [ 30625][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:55.636 -> NOT CONNECTED
16:44:56.547 -> Connecting to Wi-Fi...E (34555) wifi:sta is connecting, return error
16:44:56.610 -> [ 31704][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:56.643 -> NOT CONNECTED
16:44:57.626 -> Connecting to Wi-Fi...E (35634) wifi:sta is connecting, return error
16:44:57.689 -> [ 32783][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:57.722 -> NOT CONNECTED
16:44:58.735 -> Connecting to Wi-Fi...E (36713) wifi:sta is connecting, return error
16:44:58.766 -> [ 33862][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:58.799 -> NOT CONNECTED
16:44:59.814 -> Connecting to Wi-Fi...E (37792) wifi:sta is connecting, return error
16:44:59.845 -> [ 34941][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:44:59.880 -> NOT CONNECTED
16:45:00.893 -> Connecting to Wi-Fi...NOT CONNECTED
16:45:01.944 -> Connecting to Wi-Fi...E (39931) wifi:sta is connecting, return error
16:45:01.975 -> [ 37080][E][STA.cpp:415] connect(): STA connect failed! 0x3007: ESP_ERR_WIFI_CONN
16:45:02.007 -> NOT CONNECTED
16:45:03.025 -> Wifi CONNECTED
16:45:03.025 -> RRSI: -65
16:45:03.025 -> Setting up the server for AWS
16:47:06.994 -> [162152][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:47:07.058 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.com AWS_PORT: 8883
16:47:07.090 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:47:07.122 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:47:13.124 -> Wifi CONNECTED
16:47:13.124 -> RRSI: -67
...
16:47:43.565 -> Setting up the server for AWS
16:47:43.597 -> [198725][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:47:43.629 -> [198784][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:48:49.883 -> CONNECT_TO_AWS_IOT_RC: Connected
16:48:55.877 -> Wifi CONNECTED
16:48:55.931 -> RRSI: -66
...
16:47:43.565 -> Setting up the server for AWS
16:47:43.597 -> [198725][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:47:43.629 -> [198784][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:48:49.883 -> CONNECT_TO_AWS_IOT_RC: Connected
16:48:55.877 -> Wifi CONNECTED
16:48:55.931 -> RRSI: -66
...
16:49:12.685 -> [287850][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:51:14.915 -> [410084][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:51:14.978 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.comAWS_PORT: 8883
16:51:15.010 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:51:15.042 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:51:21.032 -> Wifi CONNECTED
16:51:21.032 -> RRSI: -62
16:51:21.063 -> Setting up the server for AWS
16:51:21.063 -> [416194][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:51:21.127 -> [416273][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:51:21.159 -> [416322][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:51:39.828 -> [434975][E][ssl_client.cpp:146] start_ssl_client(): socket error on fd 48, errno: 113, "Software caused connection abort"
16:51:39.892 -> [435039][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:51:39.924 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.comAWS_PORT: 8883
16:51:39.956 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:51:39.988 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:51:45.999 -> Wifi CONNECTED
16:51:45.999 -> RRSI: -63
16:51:45.999 -> Setting up the server for AWS
16:51:46.031 -> [441148][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:51:46.063 -> [441227][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:51:46.127 -> [441276][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:52:04.306 -> [459480][E][ssl_client.cpp:146] start_ssl_client(): socket error on fd 48, errno: 113, "Software caused connection abort"
16:52:04.369 -> [459544][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:52:04.433 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.comAWS_PORT: 8883
16:52:04.465 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:52:04.497 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:52:10.479 -> Wifi CONNECTED
16:52:10.511 -> RRSI: -64
16:52:10.511 -> Setting up the server for AWS
16:52:10.511 -> [465653][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:52:10.575 -> [465732][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:52:10.607 -> [465781][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:52:28.825 -> [483986][E][ssl_client.cpp:146] start_ssl_client(): socket error on fd 48, errno: 113, "Software caused connection abort"
16:52:28.889 -> [484050][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:52:28.921 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.comAWS_PORT: 8883
16:52:28.985 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:52:29.018 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:52:34.993 -> Wifi CONNECTED
16:52:34.993 -> RRSI: -64
16:52:35.025 -> Setting up the server for AWS
16:52:35.025 -> [490159][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:52:35.089 -> [490238][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:52:35.121 -> [490287][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:54:38.878 -> [614039][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:54:38.910 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.comAWS_PORT: 8883
16:54:38.943 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:54:38.976 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:54:44.992 -> Wifi CONNECTED
16:54:44.992 -> RRSI: -66
16:54:44.992 -> Setting up the server for AWS
16:54:45.046 -> [620149][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:54:45.056 -> [620228][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:54:45.118 -> [620277][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:55:03.662 -> [638813][E][ssl_client.cpp:146] start_ssl_client(): socket error on fd 48, errno: 113, "Software caused connection abort"
16:55:03.725 -> [638877][E][NetworkClientSecure.cpp:159] connect(): start_ssl_client: connect failed: -1
16:55:03.757 -> AWS_ENDPOINT: data-ats.iot.us-east-1.amazonaws.comAWS_PORT: 8883
16:55:03.789 -> DEVICE_ID: ESP32Client-ac460bca-c8cf-44d5-9e16-938dd3a0dc4f
16:55:03.821 -> CONNECT_TO_AWS_IOT_RC: ConnectionFailed
16:55:09.806 -> Wifi CONNECTED
16:55:09.858 -> RRSI: -70
16:55:09.858 -> Setting up the server for AWS
16:55:09.858 -> [644986][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:55:09.901 -> [645065][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
16:55:09.933 -> [645114][E][NetworkClient.cpp:319] setSocketOption(): fail on 0, errno: 9, "Bad file number"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment