nx_secure_tls_session_start returns NX_NO_PACKET error in wifi mode, it's OK in Ethernet mode

Hello,

I'm trying to run a program on S7G2 SSP1.7.8 of wifi MQTTS connection.

This connection already works fine with the Ethernet cable on the same broker,

The X509 certificates Root, device, etc...are well installed.

However, the nx_secure_tls_session_start function returns error 1 (NX_NO_PACKET), sometimes 56 (NX_NOT_CONNECTED) when I'm on Wifi.
I'm well connected to the local wifi network, as I'm getting the IP addresses from DHCP.

However, I've managed to connect two or 3 times in debug in step-by-step mode?

The MQTT_TIMEOUT argument of the nxd_mqtt_client_secure_connect function is set to 60s, I tried to double it without success.

Has anyone encountered this problem?

Thanks in advance.

Best Regards,

Eric

  • Hello,

    jI still haven't solved my problem... It seems to be a Wifi timing problem, because when debugging with breakpoints from the nx_secure_tls_session_start function and in the source functions, I often manage to connect to the cloud...

    When it doesn't work, it seems to be the nx_secure_tls_handshake_process function that returns the NX_NO_PACKET error.
    Does anyone have this problem with Wifi? (I'm using a Microchip ATWINC1500 driver).

    Thanks in advance.

    Eric