WiFi Examples: Load SSID & password from a common local.h file instead
of coding into program
This commit is contained in:
parent
1b0124cf05
commit
f0db6f2b98
5 changed files with 22 additions and 10 deletions
|
|
@ -20,9 +20,9 @@
|
|||
#define WEB_PORT 80
|
||||
#define WEB_URL "http://chainxor.org/"
|
||||
|
||||
/* FILL THESE IN!!!!!!!!!! */
|
||||
#define WIFI_SSID "SSID Name Here"
|
||||
#define WIFI_PASS "Wifi Password Here"
|
||||
#if !defined(WIFI_SSID) || !defined(WIFI_PASS)
|
||||
#error "Please define macros WIFI_SSID & WIFI_PASS (here, or better in a local.h file at root level or in program dir."
|
||||
#endif
|
||||
|
||||
void http_get_task(void *pvParameters)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,14 +20,13 @@
|
|||
|
||||
#include "ssl.h"
|
||||
|
||||
|
||||
#define WEB_SERVER "10.10.10.1"
|
||||
#define WEB_SERVER "192.168.0.18"
|
||||
#define WEB_PORT "8000"
|
||||
#define WEB_URL "https://chainxor.org/"
|
||||
#define WEB_URL "/test"
|
||||
|
||||
/* FILL THESE IN!!!!!!!!!! */
|
||||
#define WIFI_SSID "esptest"
|
||||
#define WIFI_PASS "secret passphrase"
|
||||
#if !defined(WIFI_SSID) || !defined(WIFI_PASS)
|
||||
#error "Please define macros WIFI_SSID & WIFI_PASS (here, or better in a local.h file at root level or in program dir."
|
||||
#endif
|
||||
|
||||
static void display_cipher(SSL *ssl);
|
||||
static void display_session_id(SSL *ssl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue