Home Alert System

Dependencies:   PWM_Tone_Library DHT

M2XStreamClient/NullPrint.h

Committer:
aziz111
Date:
2019-03-08
Revision:
5:569a4894abc1
Parent:
3:78f223d34f36

File content as of revision 5:569a4894abc1:

#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 */