yasheena / telnetspy

Telnet Server For ESP8266: Cloning the serial port via Telnet. "Debugging over the air"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no matching function for call to 'TelnetSpy::begin()'

mrdc opened this issue · comments

commented

Hello,

I’m receiving no matching function for call to 'TelnetSpy::begin()' during compilation in Arduino IDE 1.8.10 with ESP32 board:


error: no matching function for call to 'TelnetSpy::begin()'

     LOG.begin();

               ^
libraries\telnetspy-master/TelnetSpy.h:208:8: note: candidate: void TelnetSpy::begin(long unsigned int, uint32_t, int8_t, int8_t, bool)

   void begin(unsigned long baud, uint32_t config=SERIAL_8N1, int8_t rxPin=-1, int8_t txPin=-1, bool invert=false);

        ^
libraries\telnetspy-master/TelnetSpy.h:208:8: note:   candidate expects 5 arguments, 0 provided

no matching function for call to 'TelnetSpy::begin()'

I’ve added these code to my sketch:

#include <TelnetSpy.h>
TelnetSpy LOG;
Add the following line to your initialisation block void setup():

LOG.begin();
Add the following line at the beginning of your main loop void loop():

LOG.handle();

@yasheena
Any ideas what can be wrong?

commented

My mistake: baud rate in begin() was missing.