Home Alert System

Dependencies:   PWM_Tone_Library DHT

Revision:
3:78f223d34f36
diff -r 3a61e56476bc -r 78f223d34f36 M2XStreamClient/NullPrint.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/M2XStreamClient/NullPrint.h	Tue Mar 05 02:34:44 2019 +0000
@@ -0,0 +1,18 @@
+#ifndef NullPrint_h
+#define NullPrint_h
+
+#include "Print.h"
+
+// Null Print class used to calculate length to print
+class NullPrint : public Print {
+public:
+  virtual size_t write(uint8_t b) {
+    return 1;
+  }
+
+  virtual size_t write(const uint8_t* buf, size_t size) {
+    return size;
+  }
+};
+
+#endif  /* NullPrint_h */