Dependencies: BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax
netdevices.h
- Committer:
- masterkookus
- Date:
- 2019-09-26
- Revision:
- 8:fa2a2c3a16ce
- Parent:
- 7:be13a9037d41
- Child:
- 9:d6e7981dfc89
File content as of revision 8:fa2a2c3a16ce:
#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; unsigned int srvPort; bool srvIsActive; bool srvCloseConnection; unsigned int aliveTime; unsigned int aliveTimeout; TCPSocket srv_sock; unsigned int cltPort; char* srv_addr; bool cltIsActive; bool cltCloseConnection; bool pollEnabled; bool pollRequestSent; bool pollResponseReceived; unsigned int pollTimeout; unsigned int pollTime; unsigned int pollInterval; unsigned int pollTimeoutCount; unsigned int sendTimeout; unsigned int sendTime; unsigned int sendInterval; unsigned int sendState; unsigned int pollState; unsigned int deivceType; bool attachRetry; bool sendRetry; bool connectRetry; unsigned int sendRetryCount; unsigned int messageFailCount; unsigned int txMessageCount; unsigned int rxMessageCount; unsigned int deviceConfig; char sendString[256]; char sendLen; }; #endif