单片机 > 单片机程序设计 > 详情

pic 16 操作esp8266

发布时间:2023-08-15 发布时间:
|

unsigned char AT[]="ATrn"; // 联机指令,返回"OK"
unsigned char wifi_mode[]="AT+CWMODE=2rn"; // 设置ESP8266的工作模式,返回"OK"或者"no change"
unsigned char wifi_cipmux[]="AT+CIPMUX=1rn";
unsigned char cipserver[]="AT+CIPSERVER=1,8080rn";
const char wifi_cwsap[]="AT+CWSAP="Westinghouse","88888888",2,3rn"; // 连接到WiFi热点,Westinghouse为热点名称,88888888为密码;频道 2 加密方式WPA2_PSK连接成功返回“OK”
unsigned char wifi_send_0[]={"AT+CIPSEND=0,43rn"}; // 发送数据指令
unsigned char wifi_send_1[]="AT+CIPSEND=1,43rn";
//unsigned char wifi_send_2[]="AT+CIPSEND=2,43rn";
//unsigned char wifi_send_3[]="AT+CIPSEND=3,43rn";
//unsigned char wifi_send_4[]="AT+CIPSEND=4,43rn";

unsigned char wifi_rst[]="AT+RSTrn";



『本文转载自网络,版权归原作者所有,如有侵权请联系删除』

热门文章 更多
STM32学习笔记4:外部中断