On 03.08.2018 09:36, Richard Man wrote:
Hi Simon or others, I am attempting to build 2.1.0 RC1 with ALTCP, specifically with the mbedTLS 2.12.0. Looks like I need to map the function pointers in altcp_tcp.h to the mbedTLS functions, but if there is a working example that I can leverage, I would appreciate it. There is some urgency in this (but why of course).
The altcp functions are mapped to mbedTLS in the files under "src\apps\altcp_tls\". You just need to enable them and link them in.
mqtt initialization works much like normal, but you have to assign a "tls_config" in struct mqtt_connect_client_info_t: mqtt_client_info.tls_config = altcp_tls_create_config_client(cert, sizeof(cert));
where "cert" is a certificate readable by "mbedtls_x509_crt_parse()" (e.g. x509).
Simon _______________________________________________ lwip-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/lwip-users
