江红之乡

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1:Ardino与WiFi资料链接:

《一》

Arduino软件可以到这里下载。
https://www.arduino.cc/en/Main/Software

然后下载arduino支持8266所需软件包,安装教程也在里面
http://pan.baidu.com/s/1jH8ZhkU

关于8266 arduino介绍可以到这个网址看一下。
http://esp8266.github.io/Arduino/versions/2.3.0/doc/installing.html

2:fpintf与print区别例子

#include <stdio.h>
#include <stdlib.h>
int main()
{
int num;
char name[5];
FILE *fp;
if ((fp = fopen("t.txt", "w")) == NULL)
printf("cannot open file!\n");
scanf("%d %s",&num,name);
fprintf(fp, "%d %s", num, name);
printf("%d",num);
fclose(fp);

if ((fp = fopen("tt.txt", "w")) == NULL)
printf("cannot open file!\n");
fwrite(&num, sizeof(int), 10, fp);
fwrite(name, sizeof(char), 5, fp);
fclose(fp);
system("pause");
return 0;
}

3:esp8266模块端设置问题细节

 

 

 

 

 

 

 

进入网站:

https://open.iot.10086.cn/device/index?pid=100669

有一个开发者中心:

创建产品:

前边几项可以任意填写:

 

 

 

第二步 注意红色选项即可 选择务必忘记选择MQTT网络:

 

 

下一步:注意鉴权名称:后续会用到:

 

 

 

 

 

 

调试方法:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

2:

 

 

 

 

 

 

posted on 2017-12-15 17:41  江红之乡  阅读(474)  评论(0编辑  收藏  举报