Page 1 of 1

mqtt when ppp and wifi enabled

Posted: Tue May 12, 2020 2:13 pm
by c.Hicham
Hello,

I'm using a custom board with esp32 chip in it and an LTE modem.

I establish ppp connection using the modem and then connect to my server using mqtt (mqtt_cfg.transport = MQTT_TRANSPORT_OVER_SSL). I'm able to connect to the server and send data with no any issues.

But when I enable the WIFI in AP mode, I don't seem to be able to connect to the server via mqtt ?

I get the following errors

E (27372) esp-tls: mbedtls_ssl_handshake returned -0x4310
I (27372) esp-tls: Certificate verified.
V (27377) UPLOAD: CELLIB: PPP OUTPUT: 45 bytes

E (27378) esp-tls: Failed to open new connection
E (27378) TRANS_SSL: Failed to open a new connection
E (27383) MQTT_CLIENT: Error transport connect
D (27392) MQTT_CLIENT: Reconnect after 10000 ms

or

E (1192746) esp-tls: mbedtls_ssl_handshake returned -0x10
I (1192747) esp-tls: Certificate verified.
E (1192753) esp-tls: Failed to open new connection
E (1192754) TRANS_SSL: Failed to open a new connection
E (1192758) MQTT_CLIENT: Error transport connect
D (1192767) MQTT_CLIENT: Reconnect after 10000 ms


I'm not able to find -0x4310 and -0x10 meaning. Can anyone helps out ?
Does the WIFI have an effect on what i'm trying to do ! any advices or tips would be very appreciated.

Thx