Skip to content

Commit

Permalink
Remove ssid & password in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nazt committed Apr 9, 2016
1 parent 176a57a commit 67bda73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/wifi-basic-http-get/wifi-basic-http-get.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <ESP8266HTTPClient.h>


WiFiConnector wifi("Nat", "123456789");
WiFiConnector wifi(WIFI_SSID, WIFI_PASSPHRASE);

void init_hardware()
{
Expand Down
2 changes: 1 addition & 1 deletion examples/wifi-basic/wifi-basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <ESP8266WiFi.h>
#include <WiFiConnector.h>

WiFiConnector wifi("Nat", "1234567890");
WiFiConnector wifi(WIFI_SSID, WIFI_PASSPHRASE);

void init_hardware()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <ESP8266WebServer.h>
#include "FS.h"

WiFiConnector wifi("DEAWARE_MAIN", "DEAW1234567890");
WiFiConnector wifi(WIFI_SSID, WIFI_PASSPHRASE);
ESP8266WebServer server(80);

void fail(const char* msg) {
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ framework = arduino
board = espresso_lite_v2
upload_speed = 460800
extra_script = extra_script.py
; build_flags = -DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
build_flags = '-DWIFI_SSID="Nat"' '-DWIFI_PASSPHRASE="123456789"' -DDEBUG_ESP_PORT=Serial -DDEBUG_ESP_CORE -DDEBUG_ESP_SSL -DDEBUG_ESP_WIFI -DDEBUG_ESP_HTTP_CLIENT -DDEBUG_ESP_HTTP_UPDATE -DDEBUG_ESP_HTTP_SERVER -DDEBUG_ESP_UPDATER -DDEBUG_ESP_OTA -DDEBUG_TLS_MEM
; -DWIFI_CONNECTOR_DEBUG_MODE

[platformio]
Expand Down

0 comments on commit 67bda73

Please sign in to comment.