|
From: | address@hidden |
Subject: | Re: [lwip-users] Request for ALTCP example etc. |
Date: | Fri, 3 Aug 2018 09:48:05 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |