1、support adapter_bluetooth and hc08 device;2、fix adapter at agent bug。

This commit is contained in:
Liu_Weichao
2021-10-11 10:13:01 +08:00
parent b07ad19dc3
commit 92347f7e29
10 changed files with 435 additions and 44 deletions

View File

@@ -52,6 +52,8 @@ struct ATAgent
int lock;
ATReplyType reply;
char reply_end_char;
uint32 reply_char_num;
int rsp_sem;
pthread_t at_handler;
@@ -67,6 +69,8 @@ typedef struct ATAgent *ATAgentType;
int EntmSend(ATAgentType agent, const char *data, int len);
int EntmRecv(ATAgentType agent, char *rev_buffer, int buffer_len, int timeout_s);
char *GetReplyText(ATReplyType reply);
int AtSetReplyEndChar(ATAgentType agent, char ch);
int AtSetReplyCharNum(ATAgentType agent, unsigned int num);
ATReplyType CreateATReply(uint32 reply_max_len);
uint IpTint(char *ipstr);
void SwapStr(char *str, int begin, int end);