sssh...secrets
This commit is contained in:
parent
2130084d84
commit
608016fff6
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
arduino_secrets.sh
|
@ -3,10 +3,12 @@
|
||||
#include <ArduinoMqttClient.h>
|
||||
// #include <WiFiNINA.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
// #include "arduino_secrets.h"
|
||||
#include <PubSubClient.h>
|
||||
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user