此帖出自微控制器 MCU论坛
最新回复
不是,我建议你最好先用串口调试助手先测试下命令,转义字符需要。[attach]241304[/attach]
我随便就好人做到底,送佛送到西天吧
//所有用到的AT命令结构体
AT_CMD at_cmds[] = {
{AT_CMD_RST, "AT+RST\r\n", AT_RST_TIMEOUT, AT_DEF_RETRIES, net_check_ready, ERR_AT_NAK},
{AT_CMD_CWMODE, "AT+CWMODE=1\r\n", AT_DEF_TIMEOUT, AT_DEF_RETRIES, net_check_at_nochange, ERR_AT_NAK},
{AT_CMD_SMARTCONFIG,"AT+CWSTARTSMART=1\r\n", AT_LINK_TIMEOUT, 1, net_check_smartconfig, ERR_AT_NAK},
{AT_CMD_SMARTSTOP,"AT+CWSTOPSMART\r\n", AT_SMARTLIK_TIMEOUT,AT_DEF_RETRIES, net_check_at, ERR_AT_NAK},
{AT_CMD_CIPMUX, "AT+CIPMUX=0\r\n", AT_DEF_TIMEOUT, AT_DEF_RETRIES, net_check_at, ERR_AT_NAK},
{AT_CMD_CIPSTART, NULL, AT_LINK_TIMEOUT, AT_DEF_RETRIES, net_check_alreay, ERR_AT_NAK},
{AT_CMD_SENDLENGTH, NULL, AT_DEF_TIMEOUT, AT_DEF_RETRIES, net_check_send, ERR_AT_NAK},
{AT_CMD_CIPCLOSE, "AT+CIPCLOSE\r\n", AT_DEF_TIMEOUT, AT_DEF_RETRIES, net_check_at_error, ERR_AT_NOCARE},
{AT_CMD_CWQAP, "AT+CWQAP\r\n", AT_DEF_TIMEOUT, AT_DEF_RETRIES, net_check_at, ERR_AT_NAK},
{AT_CMD_SEND, NULL, AT_DEF_TIMEOUT, AT_DEF_RETRIES, net_check_sendok, ERR_AT_NAK},
{AT_CMD_SMARTRST, "AT+RST\r\n", AT_RST_TIMEOUT, AT_DEF_RETRIES, net_check_ready, ERR_AT_NAK},
{-1,NULL,0,0,NULL,ERR_AT_NAK}
};
详情
回复
发表于 2016-5-25 16:25
| ||
|
||
| |
|
|
此帖出自微控制器 MCU论坛
| ||
个人签名淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目 |
||
此帖出自微控制器 MCU论坛
| ||
|
||
此帖出自微控制器 MCU论坛
| ||
个人签名淘宝:https://viiot.taobao.com/Q群243090717
多年专业物联网行业经验,个人承接各类物联网外包项目 |
||
曾经的版主且威望大于2000,或对EEWORLD论坛有突出贡献的坛友
EEWorld Datasheet 技术支持