Open schaffster opened 1 year ago
Hi @schaffster it doesn't require any specific ESP32 chip. Could you share the complete log and example you are trying to run ?
Hi @avsheth
I make it up to the MQTT_connect function in my code, during MQTT _connect() I start getting the transport Errors directly below. Below that is my code followed by a full connection log.
Thanks
E (31993) Transport_MbedTLS_PKCS11: Failed to read data: mbedTLSError= SSL - The peer notified us that the connection is going to be closed :
ESP_LOGI(__FUNCTION__,"Client ID:%s",uSwitch.Net.sHostName);
/* The maximum time interval in seconds which is allowed to elapse
* between two Control Packets.
* It is the responsibility of the client to ensure that the interval between
* control packets being sent does not exceed the this keep-alive value. In the
* absence of sending any other control packets, the client MUST send a
* PINGREQ packet. */
connectInfo.keepAliveSeconds=MQTT_KEEP_ALIVE_INTERVAL_SECONDS;
/* Username and password for authentication. Not used in this demo. */
connectInfo.pUserName=MQTT_METRICS_STRING;
connectInfo.userNameLength=strlen(MQTT_METRICS_STRING);
connectInfo.pPassword=NULL;
connectInfo.passwordLength=0U;
/* Send an MQTT CONNECT packet to the broker. */
mqttStatus=MQTT_Connect(pMqttContext,&connectInfo,NULL,MQTT_CONNACK_RECV_TIMEOUT_MS,&sessionPresent);
if(mqttStatus != MQTTSuccess){
ret=false;
ESP_LOGE(__FUNCTION__,"Connection with MQTT broker failed with status %s",MQTT_Status_strerror(mqttStatus));
}else{
ESP_LOGI(__FUNCTION__,"MQTT Connection Successful");
}
}
}
W (5823) wifi:
Pkcs setup successful, no response from AWS connect. I'm using esp-idf 4.4.3.
Does this code require a specific esp32 chip?
Not using c3