first (dirty) protoype of having two solar controllers with two seperate mx485

This commit is contained in:
Marcus 2023-08-13 01:25:45 +02:00
parent d491b335e4
commit 95e1ea053a

View file

@ -71,6 +71,9 @@
#include <SoftwareSerial.h>
#include "ArduinoJson.h"
// when having two solar controllers, set it to true, otherwise to false
// it is important to set it to false when only having one solar controller
// to avoid waiting for the timeout of the second controller
bool twoController = true;
SoftwareSerial myserial(10, 11); // RX, TX