Skip to content

Commit fa92687

Browse files
committed
Removing sensitive data from code
1 parent 9636d23 commit fa92687

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
.vscode/c_cpp_properties.json
44
.vscode/launch.json
55
.vscode/ipch
6+
7+
# File with credentials
8+
wifi_credentials.h

src/main.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "UbidotsEsp32Mqtt.h"
22
#include <HardwareSerial.h>
3+
#include "wifi_credentials.h"
34

45
// Serial port to communicate with the EDU-CIAA
56
#define UART 2
@@ -38,11 +39,11 @@ static String ESP_GetErrorAsString(ESP_Status_t status) {
3839
}
3940

4041
// WiFi credentials
41-
const char *WIFI_SSID = "Fibertel WiFi839 2.4Ghz"; // Enter your WiFi name
42-
const char *WIFI_PASSWORD = "00496026574"; // Enter WiFi password
42+
const char *WIFI_SSID = WIFI_SSID_SECRETS;
43+
const char *WIFI_PASSWORD = WIFI_PASSWORD_SECRETS;
4344

4445
// Ubidots TOKEN
45-
const char *UBIDOTS_TOKEN = "BBFF-Pc8IvgnCXtKOaQ1lwUfq5oypeSU5AW";
46+
const char *UBIDOTS_TOKEN = UBIDOTS_TOKEN_SECRETS;
4647
// Device label
4748
const char *DEVICE_LABEL = "esp32-edu-ciaa";
4849
// Variable labels

0 commit comments

Comments
 (0)