Code: Select all
void serialPrintLn(const char *message) {
Serial.println(message);
}Code: Select all
#elif defined(ARDUINO)
void serialPrintLn(const char *);Code: Select all
void serialPrintLn(const char *message) {
Serial.println(message);
}Code: Select all
#elif defined(ARDUINO)
void serialPrintLn(const char *);Na ESP8266 powinno zadziałać to rozwiązanie:SOYER wrote: Wed Dec 31, 2025 6:05 pm Mnie to w sumie do niczego potrzebne, ale fajne narzędzie do debugowania bez kabla. W zupełności mi wystarczy to, że będzie mi wysyłało to co sam będę chciał wysłać.
Dzięki za to, że nauczyłem się ciekawego narzędzia.
Do siego!
Code: Select all
// Define your custom output function
int custom_output_func(int c) {
LOG.print(c);
return c;
}
Code: Select all
// In your setup code:
esp_log_set_putchar(&custom_output_func);
exit status 1vajera wrote: Wed Dec 31, 2025 6:14 pmNa ESP8266 powinno zadziałać to rozwiązanie:SOYER wrote: Wed Dec 31, 2025 6:05 pm Mnie to w sumie do niczego potrzebne, ale fajne narzędzie do debugowania bez kabla. W zupełności mi wystarczy to, że będzie mi wysyłało to co sam będę chciał wysłać.
Dzięki za to, że nauczyłem się ciekawego narzędzia.
Do siego!
Code: Select all
// Define your custom output function int custom_output_func(int c) { LOG.print(c); return c; }Code: Select all
// In your setup code: esp_log_set_putchar(&custom_output_func);
To spróbujSOYER wrote: Wed Dec 31, 2025 6:21 pmexit status 1vajera wrote: Wed Dec 31, 2025 6:14 pmNa ESP8266 powinno zadziałać to rozwiązanie:SOYER wrote: Wed Dec 31, 2025 6:05 pm Mnie to w sumie do niczego potrzebne, ale fajne narzędzie do debugowania bez kabla. W zupełności mi wystarczy to, że będzie mi wysyłało to co sam będę chciał wysłać.
Dzięki za to, że nauczyłem się ciekawego narzędzia.
Do siego!
Code: Select all
// Define your custom output function int custom_output_func(int c) { LOG.print(c); return c; }Code: Select all
// In your setup code: esp_log_set_putchar(&custom_output_func);
esp_log.h: No such file or directory
Code: Select all
#include <log/include/esp_log.h>