Dependencies: BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax
Diff: netdevices.h
- Revision:
- 4:98cdccfb17d6
- Parent:
- 3:ac1f2af8bd0f
- Child:
- 5:c656fd08007b
--- a/netdevices.h Mon Sep 16 14:17:45 2019 +0000 +++ b/netdevices.h Tue Sep 17 17:03:40 2019 +0000 @@ -1,11 +1,24 @@ +#ifndef MYNETDEVICES_H +#define MYNETDEVICES_H + +#include "TCPServer.h" +#include "TCPSocket.h" + +void confignetdevices(EthernetInterface *eth); struct netsys { TCPServer srv; TCPSocket clt_sock; SocketAddress clt_addr; - int tcpport; + EthernetInterface *eth; + unsigned int tcpport; bool isactive; bool closeconnection; - int sockalivetime; -}; \ No newline at end of file + unsigned int aliveTime; + unsigned int pollTimeout; + unsigned int pollTime; + unsigned int pollInterval; +}; + +#endif \ No newline at end of file