comment stuff
This commit is contained in:
parent
6a72853b77
commit
84c1e0e47d
1 changed files with 2 additions and 8 deletions
|
@ -82,12 +82,10 @@ float stats_today_pv_volt_min, stats_today_pv_volt_max;
|
||||||
bool rs485DataReceived = true;
|
bool rs485DataReceived = true;
|
||||||
bool loadPoweredOn = true;
|
bool loadPoweredOn = true;
|
||||||
|
|
||||||
|
// uint8_t is short hand for a byte or an integer of length 8 bits
|
||||||
uint8_t result;
|
uint8_t result;
|
||||||
uint16_t data[6];
|
uint16_t data[6];
|
||||||
|
|
||||||
int outputValue1 = 0;
|
|
||||||
int countIt = 0;
|
|
||||||
|
|
||||||
void preTransmission()
|
void preTransmission()
|
||||||
{
|
{
|
||||||
digitalWrite(MAX485_RE_NEG, 1);
|
digitalWrite(MAX485_RE_NEG, 1);
|
||||||
|
@ -130,7 +128,6 @@ bool state = true;
|
||||||
|
|
||||||
void loop()
|
void loop()
|
||||||
{
|
{
|
||||||
// uint8_t is short hand for a byte or an integer of length 8 bits
|
|
||||||
AddressRegistry_3100();
|
AddressRegistry_3100();
|
||||||
AddressRegistry_3106();
|
AddressRegistry_3106();
|
||||||
AddressRegistry_310D();
|
AddressRegistry_310D();
|
||||||
|
@ -160,10 +157,7 @@ void loop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// AddressRegistry from esp8266_max485_simple
|
// AddressRegistry from https://github.com/Bettapro/Solar-Tracer-Blynk-V3
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void AddressRegistry_3100() {
|
void AddressRegistry_3100() {
|
||||||
result = node.readInputRegisters(0x3100, 6);
|
result = node.readInputRegisters(0x3100, 6);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue