-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tcp/tls client and server connection with FreeRTOS, lwIP #457
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bunch of missing final newlines.
also, please fix your git
email address -- it's currently showing as yota <[email protected]>
.
|
||
#endif /* __LWIPOPTS_H__ */ | ||
#endif /* __LWIPOPTS_H__ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/config/user_settings.h
Outdated
@@ -515,7 +467,7 @@ extern int my_rng_gen_block(unsigned char *output, unsigned int sz); | |||
// #define WOLFCRYPT_ONLY | |||
|
|||
/* do not warm when file is included to be built and not required to be */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix typo? warm
-> warn
RPi-Pico/include/wolf/blink.h
Outdated
#define WOLF_BLINK_INIT 1 | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/include/wolf/common.h
Outdated
#define WOLF_FAIL -1 | ||
|
||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/include/wolf/tls.h
Outdated
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/tcp_client/CMakeLists.txt
Outdated
pico_enable_stdio_usb(tcp_Client 1) | ||
pico_enable_stdio_uart(tcp_Client 1) | ||
|
||
pico_add_extra_outputs(tcp_Client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/tcp_server/CMakeLists.txt
Outdated
pico_enable_stdio_usb(tcp_Server 1) | ||
pico_enable_stdio_uart(tcp_Server 1) | ||
|
||
pico_add_extra_outputs(tcp_Server) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
pico_enable_stdio_usb(testwolfcrypt 1) | ||
pico_enable_stdio_uart(testwolfcrypt 1) | ||
|
||
pico_add_extra_outputs(testwolfcrypt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/tls_client/CMakeLists.txt
Outdated
pico_enable_stdio_usb(tls_Client 1) | ||
pico_enable_stdio_uart(tls_Client 1) | ||
|
||
pico_add_extra_outputs(tls_Client) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
RPi-Pico/tls_server/CMakeLists.txt
Outdated
pico_enable_stdio_usb(tls_Server 1) | ||
pico_enable_stdio_uart(tls_Server 1) | ||
|
||
pico_add_extra_outputs(tls_Server) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing final newline
fix config Fix detail
Added new line
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 https://github.com/raspberrypi/pico-examples
$ git clone hhttps://github.com/FreeRTOS-kernel
$ git clone https://github.com/wolfssl/wolfssl
$ git clone https://github.com/wolfssl-jp/RPi-pico-w
2. Define path
$ export PICO_SDK_PATH=/your/pico-sdk/path
$ export PICO_EXAMPLES_PATH=/your/pico-examples/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
-DTCP_SERVER=ip-addr
-DDATETIME=yymmddhhmmss .
$ make
DATETIME is for certificate validity check. Not need to be very acurrate.
4. Target files
testwolfcrypt.uf2
benchmark.uf2
tcp_Client.uf2
tls_Client.uf2
tcp_Server.uf2
tls_Server.uf2
Console output is to USB serial