Added secrets and included in the .gitignore

This commit is contained in:
Normanras
2023-07-25 18:23:36 -04:00
parent ae2efe28a4
commit ffe77c7cf7
3 changed files with 15 additions and 7 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
./ESP_Medicine_Indicator/medicine_secrets.h

View File

@ -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 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

View 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*"