Replies: 2 comments 2 replies
-
I don't have any issue compiling with Start from the simplest example UDPClientSingle then moving on from that Also check Re-assign UART pins? #834 to know that it's OK now to reassign UART to any new pins. |
Beta Was this translation helpful? Give feedback.
-
The mbed_rp2040 core doesn't support // Serial
#define PIN_SERIAL_TX (0ul)
#define PIN_SERIAL_RX (1ul)
...
#define SERIAL_HOWMANY 1
#define SERIAL1_TX (digitalPinToPinName(PIN_SERIAL_TX))
#define SERIAL1_RX (digitalPinToPinName(PIN_SERIAL_RX))
#define SERIAL_PORT_USBVIRTUAL SerialUSB
#define SERIAL_PORT_MONITOR SerialUSB
#define SERIAL_PORT_HARDWARE Serial1
#define SERIAL_PORT_HARDWARE_OPEN Serial1 You have to use arduino-pico core. Check Great job! Do you have a plan to adjust it for Platformio? #66 for more info how to convert to use PIO. If not absolutely necessary, I suggest you use Arduino IDE if still have problem with PIO. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I can get this library working well on Raspberry Pico using default GPIO 0 & 1 to communicate with ESP module.
Now I have another RP2040 device with the ESP module hard wired to pins 8(TX) & 9(RX). Also, from the device's documentation I should be using Serial2. Sample of the code for reference:
For the pins I couldn't find anywhere in the code in this library to change the pin numbers.
For the serial I tried changing this line:
#define EspSerial Serial1
To:
#define EspSerial Serial2
It compiled with this error:
undefined reference to _UART2_'
What do I need to put in my code for this device and module to work with ESP_AT_Lib?
Beta Was this translation helpful? Give feedback.
All reactions