DE—13
RE—12
and what about
RO and D1 pin of Rs485
can you share with me the circuit diagram
and while compiling the code ill get this error
Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200”
F:\Test code\energy meter\selec_em2m\selec_em2m.ino: In function ‘void setup()’:
selec_em2m:45:3: error: ‘Serial2’ was not declared in this scope
Serial2.begin(9600);
^
F:\Test code\energy meter\selec_em2m\selec_em2m.ino: In function ‘void loop()’:
selec_em2m:68:2: error: ‘Serial2’ was not declared in this scope
Serial2.flush();
^
exit status 1
‘Serial2’ was not declared in this scope