Skip to content

Commit

Permalink
Merge pull request #29 from dasuntheekshanagit/main
Browse files Browse the repository at this point in the history
move credentials to another file
  • Loading branch information
dasuntheekshanagit authored Dec 10, 2023
2 parents e10390d + 7009056 commit bdde5bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions code/mqtt/ESP8266/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.vscode/c_cpp_properties.json
.vscode/launch.json
.vscode/ipch
lib/credentials.h
5 changes: 1 addition & 4 deletions code/mqtt/ESP8266/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "../lib/credentials.h"

const char* SSID = "Dasun's Galaxy M21"; // WiFi name
const char* PASSWORD = "sise9444"; // WiFi password
const char* ID = "nodemcu01"; // Device ID
const char* TOPIC = "node/nodemcu01";
const char* NODESTATUS = "node/status";
const char* mqttServer = "192.168.182.122"; // Broker IP
const int mqttPort = 1883; // Broker port

int OB_LED = 16; // Assign LED1 to pin GPIO2
int MQTT_LED = 2; // Assign LED1 to pin GPIO16
Expand Down

0 comments on commit bdde5bf

Please sign in to comment.