From 608016fff6963532b9c62775b81deaaa12b3ef0f Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Sat, 26 Oct 2024 12:05:46 +0200 Subject: [PATCH] sssh...secrets --- .gitignore | 1 + arduino/MQTT/MQTT.ino | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7af9e5d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +arduino_secrets.sh \ No newline at end of file diff --git a/arduino/MQTT/MQTT.ino b/arduino/MQTT/MQTT.ino index 8ae83c3..26513ca 100644 --- a/arduino/MQTT/MQTT.ino +++ b/arduino/MQTT/MQTT.ino @@ -3,10 +3,12 @@ #include // #include #include +// #include "arduino_secrets.h" #include -char ssid[] = "xxx"; // your network SSID -char password[] = "xxx"; // your network password +///////please enter your sensitive data in the Secret tab/arduino_secrets.h +char ssid[] = VITRINE_SSID; // your network SSID +char password[] = VITRINE_WIFI_PASS; // your network password WiFiClient espClient; MqttClient mqttClient(espClient); @@ -19,8 +21,8 @@ const char topic[] = "real_unique_topic"; const char topic2[] = "real_unique_topic_2"; const char topic3[] = "real_unique_topic_3"; const char *mqtt_topic = "emqx/esp8266/led"; // -const char *mqtt_username = "xxx"; -const char *mqtt_password = "xxx"; +const char *mqtt_username = MQTT_ARDUINO_USERNAME; +const char *mqtt_password = MQTT_ARDUINO_PASS; void setup() { //Initialize serial and wait for port to open: