You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This protocol is strictly request-reply, the client must request or send something to the server first. However, there isn't any reply when the client sends the sensor data.
*/
const int PORT = 36513;
const int TIMEOUT = 5; //it waits 10 times * time interval
class TcpClient
{
public:
TcpClient(IPAddress ip);
void SendData(SensorData s);
void begin();
void end();
void GetDateFromServer();
void GetSleepTime(int timestosend, int * sleep_time);