Struggling to build/configure your ESP Serial Bridge code. I am very new to code but have been around RC rovers for a number of years.
I am mechanically minded and can build most things, but coding is where I fall down and Google hasnt been too much help in this instance.
I am using ESP32 Wroom 32 for my project, I dont suppose you have an example Serial_Bridge code thats filled in so that I can set my own parameter requirements please.
What I’m looking for is to able to see a completed example with all parameters filled in. This way I am able to understand and learn what is needed to make the code work.
I understand how to configure config.h but I am receiving many many errors (too many to display here) with the serial_bridge.ino when attempting to load to the ESP32.
Here are the first few lines
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:57:21: error: ‘NUM_COM’ was not declared in this scope
HardwareSerial* COM[NUM_COM] = {&Serial, &Serial_one, &Serial_two};
^~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:78:14: error: ‘NUM_COM’ was not declared in this scope
uint8_t buf1[NUM_COM][BUFFERSIZE];
^~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:78:23: error: ‘BUFFERSIZE’ was not declared in this scope
uint8_t buf1[NUM_COM][BUFFERSIZE];
^~~~~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:78:23: note: suggested alternative: ‘BUFSIZ’
uint8_t buf1[NUM_COM][BUFFERSIZE];
^~~~~~~~~~
BUFSIZ
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:79:14: error: ‘NUM_COM’ was not declared in this scope
uint8_t buf2[NUM_COM][BUFFERSIZE];
^~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:79:23: error: ‘BUFFERSIZE’ was not declared in this scope
uint8_t buf2[NUM_COM][BUFFERSIZE];
^~~~~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:79:23: note: suggested alternative: ‘BUFSIZ’
uint8_t buf2[NUM_COM][BUFFERSIZE];
^~~~~~~~~~
BUFSIZ
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:82:13: error: ‘NUM_COM’ was not declared in this scope
uint16_t i1[NUM_COM] = {0, 0, 0};
^~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:83:13: error: ‘NUM_COM’ was not declared in this scope
uint16_t i2[NUM_COM] = {0, 0, 0};
^~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:89:15: error: ‘BUFFERSIZE’ was not declared in this scope
uint8_t BTbuf[BUFFERSIZE];
^~~~~~~~~~
C:\Users\DuncanMcfarlane\Documents\Arduino\libraries\ESP-Serial-Bridge-master\ESP-Serial-Bridge\ESP-Serial-Bridge.ino:89:15: note: suggested alternative: ‘BUFSIZ’
uint8_t BTbuf[BUFFERSIZE];
There’s a problem with your development environment. It appears that config.h doesn’t even exist as far as the compiler knows. Or you have removed lines that need to exist.
Please help me out here, as said this is not my forte.
To load onto an esp the three files need to be loaded from the same window once config.h has been adapted?