diff --git a/ESP32-mqtt-room.ino b/ESP32-mqtt-room.ino
index bc487c1..34cfd5a 100644
--- a/ESP32-mqtt-room.ino
+++ b/ESP32-mqtt-room.ino
@@ -334,11 +334,12 @@ bool reportDevice(BLEAdvertisedDevice advertisedDevice) {
}
} else if (mqttClient.connected() && distance >= maxDistance) {
- // Serial.printf("%f exceeded distance threshold\n", distance);
+ Serial.printf("%s exceeded distance threshold %f\n\r", mac_address.c_str(), distance);
} else {
Serial.println("MQTT disconnected.");
+ connectToMqtt();
}
return false;
diff --git a/docs/images/github.svg b/docs/images/github.svg
new file mode 100644
index 0000000..1c9e2b9
--- /dev/null
+++ b/docs/images/github.svg
@@ -0,0 +1,92 @@
+
+
+
+
diff --git a/docs/index.md b/docs/index.md
index 9677498..595874d 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,8 +1,10 @@

# ESP32-mqtt-room
+
An ESP32 based presence detection node for use with the [Home Assistant](https://www.home-assistant.io/) [`mqtt_room` component](https://www.home-assistant.io/components/sensor.mqtt_room/) for localized device presence detection.
+
## Requirements
You're going to need the following items:
* An [ESP32 development board](https://www.amazon.ca/gp/product/B07F1GWJ1N/ref=as_li_tl?ie=UTF8&camp=15121&creative=330641&creativeASIN=B07F1GWJ1N&linkCode=as2&tag=ptrsnja-20&linkId=7ccc8364c8a8961ac9053e03efa91268)