mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-30 13:56:36 +00:00
feature/openssl: add openssl client demo
This commit is contained in:
34
examples/09_openssl_client/main/openssl_client.h
Normal file
34
examples/09_openssl_client/main/openssl_client.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef _OPENSSL_DEMO_H_
|
||||
#define _OPENSSL_DEMO_H_
|
||||
|
||||
/* The examples use simple WiFi configuration that you can set via
|
||||
'make menuconfig'.
|
||||
|
||||
If you'd rather not, just change the below entries to strings with
|
||||
the config you want - ie #define EXAMPLE_WIFI_SSID "mywifissid"
|
||||
*/
|
||||
#define EXAMPLE_WIFI_SSID CONFIG_WIFI_SSID
|
||||
#define EXAMPLE_WIFI_PASS CONFIG_WIFI_PASSWORD
|
||||
|
||||
/* The examples use domain of "www.baidu.com" and port number of 433 that
|
||||
you can set via 'make menuconfig'.
|
||||
|
||||
If you'd rather not, just change the below entries to strings with
|
||||
the config you want - ie #define OPENSSL_DEMO_TARGET_NAME "www.baidu.com"
|
||||
and ie #define OPENSSL_DEMO_TARGET_TCP_PORT 433
|
||||
*/
|
||||
#define OPENSSL_DEMO_TARGET_NAME CONFIG_TARGET_DOMAIN
|
||||
#define OPENSSL_DEMO_TARGET_TCP_PORT CONFIG_TARGET_PORT_NUMBER
|
||||
|
||||
#define OPENSSL_DEMO_REQUEST "{\"path\": \"/v1/ping/\", \"method\": \"GET\"}\r\n"
|
||||
|
||||
#define OPENSSL_DEMO_THREAD_NAME "OpenSSL_demo"
|
||||
#define OPENSSL_DEMO_THREAD_STACK_WORDS 10240
|
||||
#define OPENSSL_DEMO_THREAD_PRORIOTY 8
|
||||
|
||||
#define OPENSSL_DEMO_RECV_BUF_LEN 1024
|
||||
|
||||
#define OPENSSL_DEMO_LOCAL_TCP_PORT 443
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user