Closed danewalton closed 1 year ago
Setting this to 1 enables some extra logging to see what's going on. With that additional logging on, this is the printout I get:
Attempting to open interface number 2.
Successfully opened interface number 2.
prvInitialiseDHCP: start after 250 ticks
vDHCPProcess: discover
vDHCPProcess: discover
vDHCPProcess: timeout 10000 ticks
vDHCPProcess: discover
vDHCPProcess: timeout 20000 ticks
vDHCPProcess: discover
vDHCPProcess: timeout 40000 ticks
vDHCPProcess: discover
vDHCPProcess: timeout 80000 ticks
vDHCPProcess: giving up 160000 > 120000 ticks
[INFO] [AzureIoTDemo] [vApplicationIPNetworkEventHook:162] ---------STARTING DEMO---------
[INFO] [AzureIoTDemo] [vApplicationIPNetworkEventHook:171]
IP Address: 10.10.10.200
[INFO] [AzureIoTDemo] [vApplicationIPNetworkEventHook:174] Subnet Mask: 255.0.0.0
[INFO] [AzureIoTDemo] [vApplicationIPNetworkEventHook:177] Gateway Address: 10.10.10.1
[INFO] [AzureIoTDemo] [vApplicationIPNetworkEventHook:180] DNS Server Address: 208.67.222.222
[INFO] [AZ IOT] [prvConnectToServerWithBackoffRetries:635] Creating a TLS connection to val-iot-hub.azure-devices.net:8883.
[ERROR] [TlsTransport] [TLS_Socket_Connect:719] Failed to connect to val-iot-hub.azure-devices.net with error -1.
FreeRTOS_closesocket[0 to 0ip:0]: buffers 60 socks 0
[WARN] [AZ IOT] [prvConnectToServerWithBackoffRetries:685] Connection to the IoT Hub failed [6]. Retrying connection with backoff and jitter [95]ms.
[INFO] [AZ IOT] [prvConnectToServerWithBackoffRetries:660] Creating a TLS connection to val-iot-hub.azure-devices.net:8883.
[ERROR] [TlsTransport] [TLS_Socket_Connect:719] Failed to connect to val-iot-hub.azure-devices.net with error -1.
FreeRTOS_closesocket[0 to 0ip:0]: buffers 60 socks 0
[WARN] [AZ IOT] [prvConnectToServerWithBackoffRetries:685] Connection to the IoT Hub failed [6]. Retrying connection with backoff and jitter [1570]ms.
[INFO] [AZ IOT] [prvConnectToServerWithBackoffRetries:660] Creating a TLS connection to val-iot-hub.azure-devices.net:8883.
[ERROR] [TlsTransport] [TLS_Socket_Connect:719] Failed to connect to val-iot-hub.azure-devices.net with error -1.
FreeRTOS_closesocket[0 to 0ip:0]: buffers 60 socks 0
[WARN] [AZ IOT] [prvConnectToServerWithBackoffRetries:685] Connection to the IoT Hub failed [6]. Retrying connection with backoff and jitter [1360]ms.
[INFO] [AZ IOT] [prvConnectToServerWithBackoffRetries:660] Creating a TLS connection to val-iot-hub.azure-devices.net:8883.
[ERROR] [TlsTransport] [TLS_Socket_Connect:719] Failed to connect to val-iot-hub.azure-devices.net with error -1.
FreeRTOS_closesocket[0 to 0ip:0]: buffers 60 socks 0
[WARN] [AZ IOT] [prvConnectToServerWithBackoffRetries:685] Connection to the IoT Hub failed [6]. Retrying connection with backoff and jitter [2459]ms.
[INFO] [AZ IOT] [prvConnectToServerWithBackoffRetries:660] Creating a TLS connection to val-iot-hub.azure-devices.net:8883.
`
The Windows sample for the middleware seems to hang currently.
From @vaavva who investigated a bit: