初级会员
- 积分
- 95
- 金钱
- 95
- 注册时间
- 2019-5-16
- 在线时间
- 14 小时
|
#include "led.h"
#include "delay.h"
#include "sys.h"
#include "usart.h"
#include "usart3.h"
#include "string.h"
void sendMessage(char *number,char *msg);
void esp8266init()
{
atk_8266_send_cmd("AT+CIPMODE=0","OK",20);
delay_ms(500);
atk_8266_send_cmd("AT+RST\r\n","OK",20);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
atk_8266_send_cmd("AT+CWSAP=\"17ó|μçWGJ\",\"12345678\",1,4\r\n","OK",20);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
delay_ms(1000);
atk_8266_send_cmd("AT+CIPMUX=1\r\n","OK",20);
delay_ms(500);
atk_8266_send_cmd("AT+CIPSERVER=1,8086\r\n","OK",20);
delay_ms(500); //*/
}
int main(void)
{
delay_init();
uart_init(115200);
esp8266init();
while(1)
{
printf("123");
}
}
为什么串口调式助手显示 网络调试助手显示不了打印的数据
|
|