Skip to content

Commit 134d65a

Browse files
committed
Shonky fix to make up for arduino-builder inadequacies - arduino/arduino-builder#85
1 parent 10875fc commit 134d65a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mqtt_esp_1.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ char* server = "your MQTT Server";
1919
//DS18B20 on GPIO2
2020
OneWire ds(2);
2121

22-
WiFiClient wifiClient;
23-
PubSubClient client(server, 1883, callback, wifiClient);
24-
2522
void callback(char* topic, byte* payload, unsigned int length) {
2623
// handle message arrived
2724
}
2825

26+
WiFiClient wifiClient;
27+
PubSubClient client(server, 1883, callback, wifiClient);
28+
2929
String macToStr(const uint8_t* mac)
3030
{
3131
String result;

0 commit comments

Comments
 (0)