Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on ESP-32 #18

Open
ghost opened this issue Nov 1, 2021 · 0 comments
Open

Error on ESP-32 #18

ghost opened this issue Nov 1, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 1, 2021

i've used this code for awhile now with the esp8266 without issue, thank you for teaching me, , i recently got my first esp32 and i am recieving this error

TelnetStream.h:27:13: error: cannot declare field 'TelnetStreamClass::server' to be of abstract type 'EthernetServer'

I'm pretty sure something got updated somewhere and caused the error, because the code still runs on my old laptop... however i have no clue how to fix it, as i have not been able to run it from arduinodroid cause of the error. these projects are being designed for in the field use and im never around my computer anymore...

=================================

and while i'm writting this i'm not sure if it's worth / possible to intergrate as im still learning and stealing code from everywhere i can find it, but i was trying to add StreamDebugger into the code for serial print through telnet for a monitor function via ota through telnet, basically to clean up duplicate codes like this, i'm new to coding and still learning so i'm not sure if they`re compatible yet..

although i do have it somewhat working from an esp8266 nodemcu-12e to juice ssh client set to telnet on my cell phone for remote monitor and at terminal away from my computer, Connected through wifi-hotspot, which has really been helpful for ota debugging as the node is powered by a buck converter and i cannot get to the usb on it anymore

`
Serial.println(F("void setup"));
TelnetStream.println("void setup");
Serial.begin(115200);
Serial.println("Booting....");
TelnetStream.println("Booting....");
Serial.println("File "FILE" Built on " DATE " at "TIME);
TelnetStream.println("File "FILE" Built on " DATE " at "TIME);
``
turned into https://github.com/vshymanskyy/StreamDebugger

``
#include <StreamDebugger.h>
StreamDebugger StreamDbg(Serial1, Serial);

Serial1 = TelnetStream

// See all AT commands, if wanted
// #define DUMP_AT_COMMANDS

#ifdef DUMP_AT_COMMANDS
StreamDebugger debugger(SerialAT, SerialMon);
TinyGsm modem(debugger);
#else
TinyGsm modem(SerialAT);
#endif

void setup() {
// Setup debug stream
Serial.begin(115200);
delay(10);

// Setup data stream
Serial1.begin(9600);
delay(10);

// Now use StreamDbg instead of Serial1

StreamDbg.println("Hello world!");
// The message is sent to Serial1,
// and automatically duplicated to Serial

}

void loop() {
// Start direct-access from Serial to Serial1
StreamDbg.directAccess();
}
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants