This is the libary for the connection with the socket. This libary allows you to send a temperature to the socket.
TempDashSocketConnection.cpp@0:fc4b4cf5371c, 2015-12-25 (annotated)
- Committer:
- de_geeter_alexander
- Date:
- Fri Dec 25 20:38:57 2015 +0000
- Revision:
- 0:fc4b4cf5371c
With the libary you can connect to the socket
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
de_geeter_alexander | 0:fc4b4cf5371c | 1 | #include "TempDashSocketConnection.h" |
de_geeter_alexander | 0:fc4b4cf5371c | 2 | #include "EthernetInterface.h" |
de_geeter_alexander | 0:fc4b4cf5371c | 3 | |
de_geeter_alexander | 0:fc4b4cf5371c | 4 | void TempDashSocketConnection::sendSensorData(std::string data) |
de_geeter_alexander | 0:fc4b4cf5371c | 5 | { |
de_geeter_alexander | 0:fc4b4cf5371c | 6 | send(const_cast<char*>(data.c_str()), data.length()); |
de_geeter_alexander | 0:fc4b4cf5371c | 7 | } |
de_geeter_alexander | 0:fc4b4cf5371c | 8 | |
de_geeter_alexander | 0:fc4b4cf5371c | 9 |