mirror of
https://github.com/schinken/esp8266-geigercounter.git
synced 2024-11-24 09:30:20 +01:00
Code cleanup
This commit is contained in:
parent
b6d40408e0
commit
4507b073f9
1 changed files with 1 additions and 5 deletions
|
@ -68,6 +68,7 @@ void updateRadiationValues() {
|
||||||
void connectMqtt() {
|
void connectMqtt() {
|
||||||
|
|
||||||
bool newConnection = false;
|
bool newConnection = false;
|
||||||
|
|
||||||
while (!mqttClient.connected()) {
|
while (!mqttClient.connected()) {
|
||||||
mqttClient.setClient(wifiClient);
|
mqttClient.setClient(wifiClient);
|
||||||
mqttClient.setServer(mqttHost, 1883);
|
mqttClient.setServer(mqttHost, 1883);
|
||||||
|
@ -81,11 +82,6 @@ void connectMqtt() {
|
||||||
mqttClient.publish(MQTT_TOPIC_LAST_WILL, "connected", true);
|
mqttClient.publish(MQTT_TOPIC_LAST_WILL, "connected", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void updateMqttTopics(int cpm, float uSv) {
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void parseReceivedLine(char* input) {
|
void parseReceivedLine(char* input) {
|
||||||
|
|
Loading…
Reference in a new issue