Added secrets and included in the .gitignore
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
./ESP_Medicine_Indicator/medicine_secrets.h
|
||||
@ -1,19 +1,21 @@
|
||||
#include <Wire.h>
|
||||
#include <Adafruit_Sensor.h>
|
||||
#include <Adafruit_NeoPixel.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <PubSubClient.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <medicine_secrets.h>
|
||||
|
||||
#define NEO_PIN 14 // Pin for all the Neopixels
|
||||
#define SIG_PIX 2 // Number of temperature pixels
|
||||
#define BUTTON_FWD_PIN 4
|
||||
#define SIG_PIX 2 // Number of temperature pixels
|
||||
#define BUTTON_FWD_PIN 2
|
||||
#define mqtt_topic "home/medicine"
|
||||
|
||||
const char* ssid = "Saints&Strangers_";
|
||||
const char* password = "xYhnac-5mixdu";
|
||||
const char* mqtt_server = "192.168.200.55";
|
||||
const char* mqtt_user = "hass";
|
||||
const char* mqtt_password = "Over9+look*";
|
||||
const char* ssid = SECRET_SSID;
|
||||
const char* password = SECRET_WIFIPASS;
|
||||
const char* mqtt_server = SECRET_MQTT_SERVER;
|
||||
const char* mqtt_user = SECRET_MQTT_USER;
|
||||
const char* mqtt_password = SECRET_MQTT_PASS;
|
||||
|
||||
boolean oldState = HIGH;
|
||||
int mode = 0; // Active mode on startup
|
||||
|
||||
5
ESP_Medicine_Indicator/medicine_secrets.h
Normal file
5
ESP_Medicine_Indicator/medicine_secrets.h
Normal file
@ -0,0 +1,5 @@
|
||||
#define SECRET_SSID "Saints&Strangers_"
|
||||
#define SECRET_WIFIPASS "xYhnac-5mixdu"
|
||||
#define SECRET_MQTT_SERVER "192.168.200.55"
|
||||
#define SECRET_MQTT_USER "hass"
|
||||
#define SECRET_MQTT_PASS "Over9+look*"
|
||||
Reference in New Issue
Block a user