WLED/wled00/net_debug.h

25 lines
622 B
C
Raw Normal View History

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:
IPAddress debugPrintHostIP;
2021-08-25 07:12:03 +02:00
public:
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);
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