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
Print.h@21:6878944d2ce2, 2016-01-02 (annotated)
- Committer:
- citrusbyte
- Date:
- Sat Jan 02 02:29:43 2016 +0000
- Revision:
- 21:6878944d2ce2
- Parent:
- 0:f479e4f4db0e
Update library version
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jb8414 | 0:f479e4f4db0e | 1 | #ifndef Print_h |
jb8414 | 0:f479e4f4db0e | 2 | #define Print_h |
jb8414 | 0:f479e4f4db0e | 3 | |
jb8414 | 0:f479e4f4db0e | 4 | #include <stddef.h> |
jb8414 | 0:f479e4f4db0e | 5 | #include <stdint.h> |
jb8414 | 0:f479e4f4db0e | 6 | |
jb8414 | 0:f479e4f4db0e | 7 | class Print { |
jb8414 | 0:f479e4f4db0e | 8 | public: |
jb8414 | 0:f479e4f4db0e | 9 | size_t print(const char* s); |
jb8414 | 0:f479e4f4db0e | 10 | size_t print(char c); |
jb8414 | 0:f479e4f4db0e | 11 | size_t print(int n); |
jb8414 | 0:f479e4f4db0e | 12 | size_t print(long n); |
jb8414 | 0:f479e4f4db0e | 13 | size_t print(double n, int digits = 2); |
jb8414 | 0:f479e4f4db0e | 14 | |
jb8414 | 0:f479e4f4db0e | 15 | size_t println(const char* s); |
jb8414 | 0:f479e4f4db0e | 16 | size_t println(char c); |
jb8414 | 0:f479e4f4db0e | 17 | size_t println(int n); |
jb8414 | 0:f479e4f4db0e | 18 | size_t println(long n); |
jb8414 | 0:f479e4f4db0e | 19 | size_t println(double n, int digits = 2); |
jb8414 | 0:f479e4f4db0e | 20 | size_t println(); |
jb8414 | 0:f479e4f4db0e | 21 | |
jb8414 | 0:f479e4f4db0e | 22 | virtual size_t write(uint8_t c) = 0; |
jb8414 | 0:f479e4f4db0e | 23 | virtual size_t write(const uint8_t* buf, size_t size); |
jb8414 | 0:f479e4f4db0e | 24 | }; |
jb8414 | 0:f479e4f4db0e | 25 | |
jb8414 | 0:f479e4f4db0e | 26 | #endif |