STM32/W5500/MbedTLS Skip Verification and Connect to MQTT/8883 ? #3250
-
Environment
Config#define MG_ARCH MG_ARCH_NEWLIB // MG_ARCH_ARMGCC, Plain ARM GCC Code#define MQTT_URL "mqtts://test.mosquitto.org:8883" void MQTTEvent(struct mg_connection *c, int ev, void ev_data) { void MQTT_Timer_Fn(void *arg) { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you have a question, please ask a question; please do not open an issuel. This is your issue, not a Mongoose issue. Migrated. Maybe this is what you want:
What exactly do you want to do ? Looks like you want to connect using TLS but do not provide any means of authentication, you just want to blindly connect and just encrypt. That we don't test, not sure if we support that; even some versions of MbedTLS do not allow that. // See Mbed-TLS/mbedtls#7075 Lines 1513 to 1555 in 8a62633 You'll see we explicitly skip empty CA with MbedTLS, and point to the link above If it works. fine, if it doesn't, then we don't currently support that. If you need that, please discuss your usage scenario and contract options with our Support team via mail. The specific MbedTLS configuration options you may need, depend on your MbedTLS version and are your responsibility. PS: Our built-in TLS is 1.3 only, you need a TLS 1.3 server to be able to connect |
Beta Was this translation helpful? Give feedback.
If you have a question, please ask a question; please do not open an issuel. This is your issue, not a Mongoose issue. Migrated.
Your config has archaic definitions, please see our documentation, and follow the guidelines in our tutorials.
If you paste code, please format it so we can read it.
Your log is huge, and it shows a lot of stuff that is not regular Mongoose log stuff, and we don't know where it comes from. Please be concise. Also, you seem to have modified our code to get what you want to get logged. You can get TLS to be verbose by setting a verbose log:
mg_log_set(MG_LL_VERBOSE);
Your problem is not with a custom board nor with a W5500 nor with an STM32; your problem seems to…