Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ThingPlug_WiFi_Example_2 ThingPlug_Ethernet_Example ThingPlug_Ethernet_Example_temp_V2
Fork of GMMP_2 by
Diff: Network/TCPclient/Print.h
- Revision:
- 0:7e575e5f88ec
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Network/TCPclient/Print.h Sun Aug 09 14:11:35 2015 +0000
@@ -0,0 +1,26 @@
+#ifndef Print_h
+#define Print_h
+
+#include <stddef.h>
+#include <stdint.h>
+
+class Print {
+public:
+ size_t print(const char* s);
+ size_t print(char c);
+ size_t print(int n);
+ size_t print(long n);
+ size_t print(double n, int digits = 2);
+
+ size_t println(const char* s);
+ size_t println(char c);
+ size_t println(int n);
+ size_t println(long n);
+ size_t println(double n, int digits = 2);
+ size_t println();
+
+ virtual size_t write(uint8_t c) = 0;
+ virtual size_t write(const uint8_t* buf, size_t size);
+};
+
+#endif
