设为首页收藏本站

arduino 单片机机器人爱好者之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: AllBlue

ESP8266 wifi 获取天气数据情况 心知天气API 中国气象局开放平台 arduino

  [复制链接]

签到天数: 552 天

[LV.9]以坛为家II

 楼主| 发表于 2017-5-3 08:47:43 | 显示全部楼层
鹅鹅鹅 发表于 2017-5-2 23:43
楼主你好。解析是什么意思?为什么我下载我ESP8266下载进去了,串口没有输出

* 简单的理解解析就是分解接收到的信息提取你需要的数据
* 如果你是直接下载的确实是不行的,需要更改 wifi 账号和密码,应该还需要新知天气的API秘钥,我的秘钥应该只能获取免费的信息,你可以试试看。
回复 支持 反对

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2017-5-3 09:18:31 | 显示全部楼层
AllBlue 发表于 2017-5-3 08:47
* 简单的理解解析就是分解接收到的信息提取你需要的数据
* 如果你是直接下载的确实是不行的,需要更改 w ...

密码啥的我都改了,发现串口一直是无输出。我想问一下楼主,烧写完后引脚的高低电平不用变吗?我用的是esp8266的模块,烧写的时候有个脚是要给低电平的
回复 支持 反对

使用道具 举报

签到天数: 3 天

[LV.2]偶尔看看I

发表于 2017-5-3 09:40:11 | 显示全部楼层
QQ图片20170503093831.jpg 楼主我用的是这个esp8266的模块
回复 支持 反对

使用道具 举报

签到天数: 552 天

[LV.9]以坛为家II

 楼主| 发表于 2017-5-3 13:35:19 | 显示全部楼层
鹅鹅鹅 发表于 2017-5-3 09:18
密码啥的我都改了,发现串口一直是无输出。我想问一下楼主,烧写完后引脚的高低电平不用变吗?我用的是es ...

烧写时,GPIO0 要给低电平
http://www.yfrobot.com/thread-11832-1-1.html
回复 支持 反对

使用道具 举报

该用户从未签到

发表于 2017-7-5 16:12:06 | 显示全部楼层
烧录进去后一直在重启
回复 支持 反对

使用道具 举报

签到天数: 552 天

[LV.9]以坛为家II

 楼主| 发表于 2017-7-9 09:07:50 | 显示全部楼层
fx乀垶 发表于 2017-7-5 16:12
烧录进去后一直在重启

这个应该是解析数据错误,解析数据是这个程序比较难的地方,你这边最好一个个数据试着解析
回复 支持 反对

使用道具 举报

该用户从未签到

发表于 2017-10-22 17:34:42 | 显示全部楼层
向楼主学习学习
回复 支持 反对

使用道具 举报

签到天数: 10 天

[LV.3]偶尔看看II

发表于 2018-3-26 10:58:58 | 显示全部楼层
..........
WiFi connected
Get the data from Internet!
{"results":[{"location":{"id":"WTTDPCGXTWUS","name":"Suzhou","country":"CN","path":"Suzhou,Suzhou,Jiangsu,China","timezone":"Asia/Shanghai","timezone_offset":"+08:00"},"now":{"text":"Cloudy","code":"4","temperature":"21","feels_like":"21","pressure":"1021","humidity":"57","visibility":"3.5","wind_direction":"SW","wind_direction_degree"
Read Over!
JSON parsing failed!
Disconnect

大佬看看这个啥毛病
回复 支持 反对

使用道具 举报

签到天数: 5 天

[LV.2]偶尔看看I

发表于 2018-4-4 22:53:42 | 显示全部楼层
就改了个wifi和密码输出了一大串,什么意思

WiFi connected
Get the data from Internet!
{"results":[{"location":{"id":"WTUXK27DXN0R","name":"Huaian","country":"CN","path":"Huaian,Huaian,Jiangsu,China","timezone":"Asia/Shanghai","timezone_offset":"+08:00"},"now":{"text":"Cloudy","code":"4","temperature":"8"},"last_update":"2018-04-04T22:35:00+08:00"}]}
Read Over!

Exception (28):
epc1=0x40205caa epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont
sp: 3ffef3f0 end: 3ffefea0 offset: 01a0

>>>stack>>>
3ffef590:  3ffeebe8 3ffe84e8 00000000 40202979  
3ffef5a0:  3ffef5b0 3ffef6e9 3ffef6b2 40203c0a  
3ffef5b0:  40106fb8 00000064 3fff1234 00000400  
3ffef5c0:  3ffeebe8 3ffef5e0 3ffeee40 3ffeee6c  
3ffef5d0:  3ffeebe8 3ffe84e8 3ffeee40 40202b45  
3ffef5e0:  75736572 0073746c 61636f6c 6e6f6974  
3ffef5f0:  00646900 58555457 4437324b 52304e58  
3ffef600:  6d616e00 75480065 6e616961 756f6300  
3ffef610:  7972746e 004e4300 68746170 61754800  
3ffef620:  2c6e6169 69617548 4a2c6e61 676e6169  
3ffef630:  432c7573 616e6968 6d697400 6e6f7a65  
3ffef640:  73410065 532f6169 676e6168 00696168  
3ffef650:  656d6974 656e6f7a 66666f5f 00746573  
3ffef660:  3a38302b 6e003030 7400776f 00747865  
3ffef670:  756f6c43 63007964 0065646f 65740034  
3ffef680:  7265706d 72757461 00380065 7473616c  
3ffef690:  6470755f 00657461 38313032 2d34302d  
3ffef6a0:  32543430 35333a32 2b30303a 303a3830  
3ffef6b0:  75740030 3a226572 7d223822 616c222c  
3ffef6c0:  755f7473 74616470 223a2265 38313032  
3ffef6d0:  2d34302d 32543430 35333a32 2b30303a  
3ffef6e0:  303a3830 5d7d2230 feef007d feefeffe  
3ffef6f0:  feefeffe feefeffe feefeffe feefeffe  
3ffef700:  feefeffe feefeffe feefeffe feefeffe  
3ffef710:  feefeffe feefeffe feefeffe feefeffe  
3ffef720:  feefeffe feefeffe feefeffe feefeffe  
3ffef730:  feefeffe feefeffe feefeffe feefeffe  
3ffef740:  feefeffe feefeffe feefeffe feefeffe  
3ffef750:  feefeffe feefeffe feefeffe feefeffe  
3ffef760:  feefeffe feefeffe feefeffe feefeffe  
3ffef770:  feefeffe feefeffe feefeffe feefeffe  
3ffef780:  feefeffe feefeffe feefeffe feefeffe  
3ffef790:  feefeffe feefeffe feefeffe feefeffe  
3ffef7a0:  feefeffe feefeffe feefeffe feefeffe  
3ffef7b0:  feefeffe feefeffe feefeffe feefeffe  
3ffef7c0:  feefeffe feefeffe feefeffe feefeffe  
3ffef7d0:  feefeffe feefeffe feefeffe feefeffe  
3ffef7e0:  feefeffe feefeffe feefeffe feefeffe  
3ffef7f0:  feefeffe feefeffe feefeffe feefeffe  
3ffef800:  feefeffe feefeffe feefeffe feefeffe  
3ffef810:  feefeffe feefeffe feefeffe feefeffe  
3ffef820:  feefeffe feefeffe feefeffe feefeffe  
3ffef830:  feefeffe feefeffe feefeffe feefeffe  
3ffef840:  feefeffe feefeffe feefeffe feefeffe  
3ffef850:  feefeffe feefeffe feefeffe feefeffe  
3ffef860:  feefeffe feefeffe feefeffe feefeffe  
3ffef870:  feefeffe feefeffe feefeffe feefeffe  
3ffef880:  feefeffe feefeffe feefeffe feefeffe  
3ffef890:  feefeffe feefeffe feefeffe feefeffe  
3ffef8a0:  feefeffe feefeffe feefeffe feefeffe  
3ffef8b0:  feefeffe feefeffe feefeffe feefeffe  
3ffef8c0:  feefeffe feefeffe feefeffe feefeffe  
3ffef8d0:  feefeffe feefeffe feefeffe feefeffe  
3ffef8e0:  feefeffe feefeffe feefeffe feefeffe  
3ffef8f0:  feefeffe feefeffe feefeffe feefeffe  
3ffef900:  feefeffe feefeffe feefeffe feefeffe  
3ffef910:  feefeffe feefeffe feefeffe feefeffe  
3ffef920:  feefeffe feefeffe feefeffe feefeffe  
3ffef930:  feefeffe feefeffe feefeffe feefeffe  
3ffef940:  feefeffe feefeffe feefeffe feefeffe  
3ffef950:  feefeffe feefeffe feefeffe feefeffe  
3ffef960:  feefeffe feefeffe feefeffe feefeffe  
3ffef970:  feefeffe feefeffe feefeffe feefeffe  
3ffef980:  feefeffe feefeffe feefeffe feefeffe  
3ffef990:  feefeffe feefeffe feefeffe feefeffe  
3ffef9a0:  feefeffe feefeffe feefeffe feefeffe  
3ffef9b0:  feefeffe feefeffe feefeffe feefeffe  
3ffef9c0:  feefeffe feefeffe feefeffe feefeffe  
3ffef9d0:  feefeffe feefeffe feefeffe feefeffe  
3ffef9e0:  feefeffe feefeffe feefeffe feefeffe  
3ffef9f0:  feefeffe feefeffe feefeffe feefeffe  
3ffefa00:  feefeffe feefeffe feefeffe feefeffe  
3ffefa10:  feefeffe feefeffe feefeffe feefeffe  
3ffefa20:  feefeffe feefeffe feefeffe feefeffe  
3ffefa30:  feefeffe feefeffe feefeffe feefeffe  
3ffefa40:  feefeffe feefeffe feefeffe feefeffe  
3ffefa50:  feefeffe feefeffe feefeffe feefeffe  
3ffefa60:  feefeffe feefeffe feefeffe feefeffe  
3ffefa70:  feefeffe feefeffe feefeffe feefeffe  
3ffefa80:  feefeffe feefeffe feefeffe feefeffe  
3ffefa90:  feefeffe feefeffe feefeffe feefeffe  
3ffefaa0:  feefeffe feefeffe feefeffe feefeffe  
3ffefab0:  feefeffe feefeffe feefeffe feefeffe  
3ffefac0:  feefeffe feefeffe feefeffe feefeffe  
3ffefad0:  feefeffe feefeffe feefeffe feefeffe  
3ffefae0:  feefeffe feefeffe feefeffe feefeffe  
3ffefaf0:  feefeffe feefeffe feefeffe feefeffe  
3ffefb00:  feefeffe feefeffe feefeffe feefeffe  
3ffefb10:  feefeffe feefeffe feefeffe feefeffe  
3ffefb20:  feefeffe feefeffe feefeffe feefeffe  
3ffefb30:  feefeffe feefeffe feefeffe feefeffe  
3ffefb40:  feefeffe feefeffe feefeffe feefeffe  
3ffefb50:  feefeffe feefeffe feefeffe feefeffe  
3ffefb60:  feefeffe feefeffe feefeffe feefeffe  
3ffefb70:  feefeffe feefeffe feefeffe feefeffe  
3ffefb80:  feefeffe feefeffe feefeffe feefeffe  
3ffefb90:  feefeffe feefeffe feefeffe feefeffe  
3ffefba0:  feefeffe feefeffe feefeffe feefeffe  
3ffefbb0:  feefeffe feefeffe feefeffe feefeffe  
3ffefbc0:  feefeffe feefeffe feefeffe feefeffe  
3ffefbd0:  feefeffe feefeffe feefeffe feefeffe  
3ffefbe0:  feefeffe feefeffe feefeffe feefeffe  
3ffefbf0:  feefeffe feefeffe feefeffe feefeffe  
3ffefc00:  feefeffe feefeffe feefeffe feefeffe  
3ffefc10:  feefeffe feefeffe feefeffe feefeffe  
3ffefc20:  feefeffe feefeffe feefeffe feefeffe  
3ffefc30:  feefeffe feefeffe feefeffe feefeffe  
3ffefc40:  feefeffe feefeffe feefeffe feefeffe  
3ffefc50:  feefeffe feefeffe feefeffe feefeffe  
3ffefc60:  feefeffe feefeffe feefeffe feefeffe  
3ffefc70:  feefeffe feefeffe feefeffe feefeffe  
3ffefc80:  feefeffe feefeffe feefeffe feefeffe  
3ffefc90:  feefeffe feefeffe feefeffe feefeffe  
3ffefca0:  feefeffe feefeffe feefeffe feefeffe  
3ffefcb0:  feefeffe feefeffe feefeffe feefeffe  
3ffefcc0:  feefeffe feefeffe feefeffe feefeffe  
3ffefcd0:  feefeffe feefeffe feefeffe feefeffe  
3ffefce0:  feefeffe feefeffe feefeffe feefeffe  
3ffefcf0:  feefeffe feefeffe feefeffe feefeffe  
3ffefd00:  feefeffe feefeffe feefeffe feefeffe  
3ffefd10:  feefeffe feefeffe feefeffe feefeffe  
3ffefd20:  feefeffe feefeffe feefeffe feefeffe  
3ffefd30:  4010320d 00040000 7fffffff 00000000  
3ffefd40:  00000022 4010320a 00040000 feefeffe  
3ffefd50:  3ffed4c0 40102136 feefeffe feefeffe  
3ffefd60:  feefeffe feefeffe 00000000 4000050c  
3ffefd70:  3fffc278 40101f8c 3fffc200 00000022  
3ffefd80:  3ffefd90 feefeffe feefeffe feefeffe  
3ffefd90:  402042a1 00000030 0000001e ffffffff  
3ffefda0:  40100710 3ffeee80 40204298 00000000  
3ffefdb0:  00000000 00000000 00000000 fffffffe  
3ffefdc0:  ffffffff 3fffc6fc 00000036 3ffeee80  
3ffefdd0:  00000000 3fffdad0 3ffeee6c 00000030  
3ffefde0:  69617548 fe006e61 feefeffe feefeffe  
3ffefdf0:  fe004e43 feefeffe feefeffe feefeffe  
3ffefe00:  756f6c43 fe007964 feefeffe feefeffe  
3ffefe10:  feefeffe feefeffe feefeffe feefeffe  
3ffefe20:  feef0038 feefeffe feefeffe feefeffe  
3ffefe30:  feefeffe feefeffe feefeffe feefeffe  
3ffefe40:  feefeffe feefeffe feefeffe feefeffe  
3ffefe50:  feefeffe feefeffe feefeffe feefeffe  
3ffefe60:  feefeffe feefeffe feefeffe feefeffe  
3ffefe70:  feefeffe feefeffe feefeffe feefeffe  
3ffefe80:  3fffdad0 00000000 3ffeee64 402042b0  
3ffefe90:  feefeffe feefeffe 3ffeee80 40100710  
<<<stack<<<

ets Jan  8 2013,rst cause:2, boot mode3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
回复 支持 反对

使用道具 举报

签到天数: 552 天

[LV.9]以坛为家II

 楼主| 发表于 2018-4-5 18:14:00 | 显示全部楼层
T_T 发表于 2018-3-26 10:58
..........
WiFi connected
Get the data from Internet!

解析错误,检查解析数据部分程序
参考:http://www.yfrobot.com/thread-11875-1-1.html
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|联系我们|YFRobot ( 苏ICP备13017135  

GMT+8, 2018-4-27 01:05 , Processed in 0.152187 second(s), 22 queries .

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表