WiFi credentials

Changed local.h to include/ssid_config.h and added instructions on how
to keep your WiFi credentials safe from Github.
This commit is contained in:
Johan Kanflo 2015-07-28 23:56:47 +02:00
parent 1cb2de5b96
commit 74041e4210
4 changed files with 8 additions and 15 deletions

View file

@ -18,14 +18,12 @@
#include "lwip/netdb.h"
#include "lwip/dns.h"
#include "ssid_config.h"
#define WEB_SERVER "chainxor.org"
#define WEB_PORT 80
#define WEB_URL "http://chainxor.org/"
#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)
{
int successes = 0, failures = 0;

View file

@ -22,14 +22,12 @@
#include "ssl.h"
#include "ssid_config.h"
#define WEB_SERVER "192.168.0.18"
#define WEB_PORT "8000"
#define WEB_URL "/test"
#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);