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.
Revision 0:fc4b4cf5371c, committed 2015-12-25
- Comitter:
- de_geeter_alexander
- Date:
- Fri Dec 25 20:38:57 2015 +0000
- Commit message:
- With the libary you can connect to the socket
Changed in this revision
| TempDashSocketConnection.cpp | Show annotated file Show diff for this revision Revisions of this file |
| TempDashSocketConnection.h | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/TempDashSocketConnection.cpp Fri Dec 25 20:38:57 2015 +0000
@@ -0,0 +1,9 @@
+#include "TempDashSocketConnection.h"
+#include "EthernetInterface.h"
+
+void TempDashSocketConnection::sendSensorData(std::string data)
+{
+ send(const_cast<char*>(data.c_str()), data.length());
+}
+
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/TempDashSocketConnection.h Fri Dec 25 20:38:57 2015 +0000
@@ -0,0 +1,14 @@
+#ifndef TEMPDASHSOCKETCONNECTION_H
+#define TEMPDASHSOCKETCONNECTION_H
+
+#include "EthernetInterface.h"
+#include <string>
+
+class TempDashSocketConnection : public TCPSocketConnection
+{
+public:
+ void sendSensorData(std::string);
+private:
+};
+
+#endif
\ No newline at end of file