ARM mbed M2X API Client: The ARM mbed client library is used to send/receive data to/from AT&T's M2X service from mbed LPC1768 microcontrollers.

Dependents:   m2x-demo-all M2X_MTS_ACCEL_DEMO M2X_MTS_Accel M2X_K64F_ACCEL ... more

NullPrint.h

Committer:
citrusbyte
Date:
2013-11-14
Revision:
7:e64d9e1a800a
Parent:
5:ea68c8980ad8

File content as of revision 7:e64d9e1a800a:

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