Skip to content

Commit

Permalink
Report MQTT parameters via serial port
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoxer committed Aug 9, 2020
1 parent e9ae365 commit 570a1bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Firmware/PM25SensorESP32/PM25SensorESP32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
Inspired by https://github.com/SwapBap/WemosDustSensor/
*/
#define VERSION "2.1"

/*--------------------------- Configuration ------------------------------*/
// Configuration should be done in the included file:
#include "config.h"
Expand Down Expand Up @@ -252,6 +253,7 @@ void setup()
if (initWifi()) {
setColour(strip.Color(0, 0, 20)); // Set all to blue
//OLED.println("Wifi [CONNECTED]");
//Serial.println(WiFi.localIP());
} else {
//OLED.println("Wifi [FAILED]");
}
Expand Down Expand Up @@ -749,7 +751,11 @@ void reconnectMqtt() {

// Loop until we're reconnected
while (!client.connected()) {
//Serial.print("Attempting MQTT connection...");
Serial.print("Attempting MQTT connection to ");
Serial.print(mqtt_broker);
Serial.print(" as ");
Serial.print(mqtt_client_id);
Serial.print("... ");
// Attempt to connect
if (client.connect(mqtt_client_id)) {
//Serial.println("connected");
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Firmware
The "Firmware" directory contains example firmware as an Arduino
project.


Enclosure
---------
The "Enclosure" directory contains STLs for a case that can be
Expand Down

0 comments on commit 570a1bc

Please sign in to comment.