Dependencies: BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax
netdevices.h
- Committer:
- masterkookus
- Date:
- 2019-10-01
- Revision:
- 9:d6e7981dfc89
- Parent:
- 8:fa2a2c3a16ce
- Child:
- 10:9da863a6da3e
File content as of revision 9:d6e7981dfc89:
#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 serIsActive; char serTimeoutCount; char devMsgReq; char devMsgPos; bool devMsgOpenRx; bool connectCmd; 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