|
|
|
|
@ -28,7 +28,7 @@ EspMQTTClient mqtt_client("devtest", // Wifi SSID
|
|
|
|
|
"10.9.2.101", // MQTT Broker server ip
|
|
|
|
|
"", // Can be omitted if not needed
|
|
|
|
|
"", // Can be omitted if not needed
|
|
|
|
|
"Airseeder", // Client name that uniquely identify your device
|
|
|
|
|
"airseeder", // Client name that uniquely identify your device
|
|
|
|
|
1883 // The MQTT port, default to 1883. this line can be omitted
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -42,8 +42,8 @@ void setup() {
|
|
|
|
|
|
|
|
|
|
Serial.setTimeout(1);
|
|
|
|
|
Serial.begin(57600);
|
|
|
|
|
i2c_comms_setup();
|
|
|
|
|
wheel_speed_setup();
|
|
|
|
|
|
|
|
|
|
mqtt_client.enableOTA("87usc6rs");
|
|
|
|
|
|
|
|
|
|
// Hopefully this lets us get missed messages during a connection.
|
|
|
|
|
mqtt_client.enableMQTTPersistence();
|
|
|
|
|
|