Search found 1 match

by viedana
Wed Mar 21, 2018 3:40 pm
Forum: ESP32 Arduino
Topic: Serial communication between two ESP32 dev boards
Replies: 2
Views: 12808

Re: Serial communication between two ESP32 dev boards

You are using the Serial 2 on the ESP32 (it has 3). In order to use this you have to define a global object (outside of the setup or loop functions):

HardwareSerial Serial2(2);

Then, to refer to this serial port, instead of using Serial use Serial2 For examble:

Serial.available()

is replaced ...

Go to advanced search