Move network stuff to config.h.

No sense updating the repo if I have to change them.
This commit is contained in:
Chris Giacofei 2022-01-11 10:26:07 -05:00
parent c0c070defc
commit dd49bdfefa
2 changed files with 1 additions and 7 deletions

View File

@ -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;

View File

@ -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);
}