Skip to content

Conversation

yota22721
Copy link

Changed tcp/tls client socket connection to FreeRTOS, lwIP and added tcp/tls server.

  • tcpClient_main.c
  • tcpServer_main.c
  • tlsClient_main.c
  • tlsServer_main.c
  1. Download files

    $ git clone https://github.com/raspberrypi/pico-sdk

    $ git clone hhttps://github.com/FreeRTOS-kernel

    $ git clone https://github.com/wolfssl/wolfssl

  2. Define path

    $ export PICO_SDK_PATH=/your/pico-sdk/path

    $ export FREERTOS_KERNEL_PATH=/your/FreeRTOS-kernel/path

    $ export WOLFSSL_ROOT=/your/wolfssl-root/path

  3. cmake and make

    $ cd wolfssl-examples/RPi-Pico

    $ cmake -DPICO_BOARD=pico_w -DWIFI_SSID=your-wifi-ssid

    • DWIFI_PASSWORD=your-wifi-password
    • DTEST_TCP_SERVER_IP=ip-addr
    • DUSE_WIFI=ON
    • DDATETIME=yymmddhhmmss .

    $ make

DATETIME is for certificate validity check. Not need to be very acurrate.

Target files
testwolfcrypt.uf2, benchmark.uf2, Wifi.uf2, tcp_Client.uf2, tls_Client.uf2, tcp_Server.uf2, tls_Server.uf2

Console output is to USB serial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant