| | |
| | | static HIDO_UINT32 l_u32HeartBeatTick = 0; |
| | | static HIDO_UINT8 l_au8CmdBuff[1024]; |
| | | |
| | | uint8_t TCPfail_flag = 0,flag_first_TCPconnect=1; |
| | | uint32_t TCPfailetimer; |
| | | uint16_t ip0,ip1,ip2,ip3,port; |
| | | |
| | | /******************************************************************************* |
| | | * Local Function Declaration * |
| | | *******************************************************************************/ |
| | |
| | | { |
| | | if(l_eTCPClientState == TCP_CLIENT_STATE_CONNECTING) |
| | | { |
| | | TCPfail_flag = 0; |
| | | l_eTCPClientState = TCP_CLIENT_STATE_IDLE; |
| | | } |
| | | |
| | |
| | | } |
| | | case SOCKET_EVENT_CLOSED: |
| | | { |
| | | TCPfail_flag = 0; |
| | | l_eTCPClientState = TCP_CLIENT_STATE_IDLE; |
| | | break; |
| | | } |
| | |
| | | if(alarm_type == 2) |
| | | alarm_type = 0; |
| | | } |
| | | uint8_t TCPfail_flag = 0,flag_first_TCPconnect=1; |
| | | uint32_t TCPfailetimer; |
| | | uint16_t ip0,ip1,ip2,ip3,port; |
| | | |
| | | HIDO_INT32 TCPClient_Poll(void) |
| | | { |
| | | if (Internet_IsIPReady() == HIDO_TRUE) |