Example for using TLS Socket on the Rasperry PI Pico W. Running inside FreeRTOS with a LWIP Socket which is then secured using WolfSSL.
Example does not use any predefined Keys or validate any certificates from the host.
Blog posts on this will be available on DrJonEA.co.uk and YouTube @DrJonEA.
Example goes through a number of tests:
- Connects to WIFI and checks connection
- Performs HTTP Get against www.drjonea.co.uk. This will return a HTTP redirect to HTTPS site
- Performs a HTTPS Get against www.drjonea.co.uk. This will return HTML, but large page so we truncate it
Environment variables are used to configure the WIFI SSID and Password. Please make sure that these are set:
- WIFI_SSID - ID for your WIFI
- WIFI_PASSWORD - Password for your WIFI
To build:
mkdir build
cd build
cmake ..
make
Flash to Pico W.
HTTPSGet/src/CMakeList.txt is defines to put STDIO on UART using GPIO 16 and 17. You may want to change this for your set up.