Associate a serial2 port to megunolink

Esp32, arduino ide.
I have two ports: Serial and Serial2.
I plan to send via Serial2 plots for MegunoLink
This is the code:
#include "MegunoLink.h"
TimePlot MyPlot; //
void setup() {
Serial.begin(115200); //
Serial2.begin(115200, SERIAL_8N1, RX2, TX2);
….
}
void loop() {
….
Serial2.print(“variavel”); -> on Monitor of the Meguno Ok
Serial2.println(variavel(i)); -> no Monitor do Meguno Ok
MyPlot.SendData("variavel", variavel(i)); -> no Time Plot do Meguno not work

}
The problem: MegunoLink, Serial2's port bound works fine. The megunolink should send via Serial2, the one connected to the ESP32, but sends it to the Serial port. Why?

I moved your topic to an appropriate forum category @bravos.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

1 Like

have a read of how-to-get-the-best-out-of-this-forum
for example

  1. post the complete code using code tags - select < CODE/ > and paste text where it says “type or paste code here”
  2. post a schematic of the circuit
  3. describe the problem in detail, e..g. what the program should do and what it does do
1 Like

Once you have finished the requests from <pert and horace Post an annotated schematic as to how you have wired it. Also explain to somebody that is not there (us) what you have, what you are getting and what you expect.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.