2021-08-25 07:12:03 +02:00
|
|
|
#ifndef WLED_NET_DEBUG_H
|
|
|
|
#define WLED_NET_DEBUG_H
|
|
|
|
|
|
|
|
#include <WString.h>
|
|
|
|
#include <WiFiUdp.h>
|
|
|
|
|
|
|
|
class NetworkDebugPrinter {
|
|
|
|
private:
|
2022-11-06 16:50:12 +01:00
|
|
|
IPAddress debugPrintHostIP;
|
2021-08-25 07:12:03 +02:00
|
|
|
public:
|
2022-11-06 16:50:12 +01:00
|
|
|
void print(const char *s, bool newline = false);
|
|
|
|
void print(const __FlashStringHelper* s, bool newline = false);
|
2021-08-25 07:12:03 +02:00
|
|
|
void print(String s);
|
2022-11-06 16:50:12 +01:00
|
|
|
void print(unsigned int n, bool newline = false);
|
2021-08-25 07:12:03 +02:00
|
|
|
void println();
|
|
|
|
void println(const char *s);
|
|
|
|
void println(const __FlashStringHelper* s);
|
|
|
|
void println(String s);
|
|
|
|
void println(unsigned int n);
|
|
|
|
void printf(const char *fmt, ...);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern NetworkDebugPrinter NetDebug;
|
|
|
|
|
|
|
|
#endif
|