#ifndef _AT_CLIENT_H_ #define _AT_CLIENT_H_ #include #include "gprs.h" extern char CONFIG_GPRS_FLAG; //1-配置完连接 0-未配置完连接 extern char CONFIG_NTP_FLAG; //1-配置完连接 0-未配置完连接 extern char CONFIG_LBS_FLAG; //1-配置完连接 0-未配置完连接 extern SYS_INFO sys_info ; extern void (*ConfigConnectDispose)(char *data);//定义一个函数指针变量,用来处理模块返回的数据 /*全部取回队列中的数据,不需要判断是否换行*/ uint16_t GPRS_Get_Data(char* buf); unsigned char GPRS_Check_CMD(char* buff); uint16_t GPRS_Transfer_Data(unsigned char ch,uint32_t len); uint8_t at_config(void); void at_ident_module(void); uint8_t Deal_URC_Handle(void); void DisposeData(char *buff); void MQTT_Send(void); uint8_t NTP(void); uint8_t LBS(void); uint8_t TCP_LINK(void);/*tcp通道链接*/ void CLEAR_FLAG(void); void MODULE_RESET(void);//模块复位 /*子字符串截取,长度,开始*/ char *substring( char *dst,char *src,int start,int len ); char *strrpc(char *str,char *oldstr,char *newstr); char *StrBetwString(char *Str,char *StrBegin,char *StrEnd); uint8_t iap_download(uint8_t Type); uint8_t LTE_config(uint8_t type); void report_update(void); void NTP_Set_Time(void); void FunctionParseGetCSQ(char *data); void fill_json_time(void); uint8_t CRC_32_For_FW(uint32_t addr , uint8_t end_pos , uint16_t end_len); #endif