Move network stuff to config.h.
No sense updating the repo if I have to change them.
This commit is contained in:
parent
c0c070defc
commit
dd49bdfefa
@ -32,10 +32,6 @@ LiquidCrystal_I2C lcd(0x27,20,4);
|
||||
float output = 0;
|
||||
int updateInterval = 1000;
|
||||
|
||||
byte mac[] = { 0xA6, 0x61, 0x0A, 0xAE, 0x89, 0xDE }; //physical mac address
|
||||
IPAddress ip(192,168,1,177);
|
||||
IPAddress myDns(192, 168, 0, 1);
|
||||
|
||||
EthernetClient net;
|
||||
MQTTClient mqtt_client;
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
void ConnectMQTT() {
|
||||
static char *password = MQTT_PASSWORD;
|
||||
static char *user = MQTT_USER;
|
||||
Serial.println("connecting MQTT...");
|
||||
while (!mqtt_client.connect("brewhouse", user, password)) {
|
||||
while (!mqtt_client.connect("brewhouse", MQTT_USER, MQTT_PASSWORD)) {
|
||||
Serial.print(".");
|
||||
delay(1000);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user