Comments (2)
So I decided to hack away at the problem and came up with this solution. It now compiles but I havn't tested it to see if it works. The compile errors go away:
--- TelnetSpy.cpp.orig 2019-06-11 03:39:16.000000000 -0400
+++ TelnetSpy.cpp 2020-07-01 08:28:32.772613248 -0400
@@ -403,7 +403,7 @@
if (debugOutput) {
actualObject = this;
#ifdef ESP8266
-
os_install_putc1((void*) TelnetSpy_putc); // Set system printing (os_printf) to TelnetSpy
-
os_install_putc1( TelnetSpy_putc); // Set system printing (os_printf) to TelnetSpy system_set_os_print(true);
#else // ESP32
// ToDo: How can be done this for ESP32 ?
@@ -412,7 +412,7 @@
if (actualObject == this) {
#ifdef ESP8266
system_set_os_print(false);
-
os_install_putc1((void*) TelnetSpy_ignore_putc); // Ignore system printing
-
os_install_putc1( TelnetSpy_ignore_putc); // Ignore system printing
#else // ESP32
// ToDo: How can be done this for ESP32 ?
#endif
Results from compile:
Executable segment sizes:
RODATA : 1540 ) / 81920 - constants (global, static) in RAM/HEAP
DATA : 1276 ) - initialized variables (global, static) in RAM/HEAP
IRAM : 27856 / 32768 - code in IRAM (ICACHE_RAM_ATTR, ISRs...)
BSS : 25576 ) - zeroed variables (global, static) in RAM/HEAP
IROM : 285660 - code in flash (default or ICACHE_FLASH_ATTR)
Sketch uses 316332 bytes (33%) of program storage space. Maximum is 958448 bytes.
Global variables use 28392 bytes (34%) of dynamic memory, leaving 53528 bytes for local variables. Maximum is 81920 bytes.
from telnetspy.
After applying the above changes it is working fine for me. The author should update the code. Thank you!
from telnetspy.
Related Issues (15)
- It is possible to use it without the ring buffer? HOT 4
- Does not compile with ESP8266 version 2.6.3 HOT 2
- TelnetSpy.cpp:17:21: fatal error: RingBuf.h: No such file or directory HOT 3
- no matching function for call to 'TelnetSpy::begin()' HOT 1
- Verbose output from serial is not transferred via Telnet HOT 2
- TelnetSpy.cpp: In member function 'void HOT 1
- Linker error when building for ESP32-C3
- Possible bug in handle() method... HOT 2
- Error compiling on Arduino Nano ESP32 - cannot convert USBCDC* to HardwareSerial* HOT 1
- newlines not rendered on Windows telnet HOT 3
- disconnect telnet client feature? HOT 3
- Issues when using platformIO HOT 3
- do I have to keep calling handle() HOT 7
- Does not work in AP only mode (ESP32) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telnetspy.