Add network debug printer
This commit is contained in:
25
wled00/net_debug.h
Normal file
25
wled00/net_debug.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef WLED_NET_DEBUG_H
|
||||
#define WLED_NET_DEBUG_H
|
||||
|
||||
#include <WString.h>
|
||||
#include <WiFiUdp.h>
|
||||
|
||||
class NetworkDebugPrinter {
|
||||
private:
|
||||
WiFiUDP debugUdp;
|
||||
public:
|
||||
void print(const char *s);
|
||||
void print(const __FlashStringHelper* s);
|
||||
void print(String s);
|
||||
void print(unsigned int n);
|
||||
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
|
||||
Reference in New Issue
Block a user