xuhongv / studyinesp8266 Goto Github PK
View Code? Open in Web Editor NEW【深度开源】Wi-FI模块esp8266学习之旅(持续更新,欢迎 Star...)
【深度开源】Wi-FI模块esp8266学习之旅(持续更新,欢迎 Star...)
如题
徐老哥,是这样的,我是用串口接收某信息,然后自动配网,再然后自动连上MQTT,保持心跳。可是现在会自动联网了,却不能自动连上MQTT服务器,求解答。
打印信息如下:
load ...
MQTT_InitConnection
MQTT_InitClient
System started ...
mode : sta(bc:dd:c2:81:04:2a)
add if0
[Rx]scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
[Rx]state: 3 -> 5 (10)
add 0
aid 8
cnt
[Rx]
connected with Gilicon2, channel 1
dhcp client start...
[Rx]ip:192.168.2.33,mask:255.255.255.0,gw:192.168.2.1
[Rx]pm open,type:2 0
[Rx]SC version: V2.5.4
?�掌��<�[Rx]current time : Mon Apr 08 14:48:36 2019
Executing task: aos make linkkitapp@esp8266 <
The terminal process terminated with exit code: 2
Terminal will be reused by tasks, press any key to close it.
在CSDN上看到了博主的文章,加群后看到来git上提问有利于后人观看,便来了。
打算做一个wifi配合串口的透传功能,即,8266 RX0收到的数据通过8266的socket发出去, socket收到的数据通过TX0发送出去。
考虑到程序设计的可靠性,而非粗暴搭建来实现功能等因素,想问问博主,目前已发布的例程中,有没有跟我需求相似
天猫精灵的SDK怎么不能调用system_get_chip_id,也不支持system_get_sdk_version
您好,我是物联网小白,我一路跟着您学的,从搭环境到打印Hello World,从搭建本地mqtt服务器到在阿里云服务器上搭建mqtt服务器,可是esp8266在与我的服务器连接时,总是重连公网IP:1883,但始终连接不上,您知道是怎么回事吗?
用的是啥编码呢。utf-8和GBK打开都是乱码。
在ESP8266_Rtos(esp-idf风格)中,关于wifi:esp_wifi_set_storage(wifi_storage_t storage ); 这样的api可以将wifi的配置信息写入到nvs中,同时也能上电自动连接,为何还需自定义命名空间来存储wifi的信息呢,请问您这样做的想法是什么呢?
你好,看了博主的教程进行尝试,发现nonosV2.1的sdk,smart_config的example中user_main.c里面已经没有init_done_cb()了,只有user_init(),我就直接在user_init里面添加了。
编译出来的固件,两个文件,地址一个是0x0,另一个是0x10000,与教程的0x40000是不一样的,烧进去后也显示csum err,后来直接试了你这里面smart_config里面的bin文件,按照0x0和0x40000的地址直接烧进去,也是显示csumerr。想请教下,是哪里设置出现错误了吗?
我认为usermain.c文件中的second_timer_Callback()函数BCD码转十进制处理部分变量名不统一,应该都为time_buf[i],另外串口输出部分的时分秒也应该为time_buf[4],time_buf[5],time_buf[7]
原有的程序:
LOCAL void ICACHE_FLASH_ATTR second_timer_Callback(void) {
unsigned char i, tmp;
time_buf[1] = DS1302_master_readByte(ds1302_year_add); //年
time_buf[2] = DS1302_master_readByte(ds1302_month_add); //月
time_buf[3] = DS1302_master_readByte(ds1302_date_add); //日
time_buf[4] = DS1302_master_readByte(ds1302_hr_add); //时
time_buf[5] = DS1302_master_readByte(ds1302_min_add); //分
time_buf[6] = (DS1302_master_readByte(ds1302_sec_add)) & 0x7F; //秒
time_buf[7] = DS1302_master_readByte(ds1302_day_add); //周
for (i = 0; i < 8; i++) { //BCD处理
tmp = time_buf[i] / 16;
time_buf1[i] = time_buf[i] % 16;
time_buf1[i] = time_buf1[i] + tmp * 10;
}
os_printf("20%x-%d-%d %d:%d:%d \n", time_buf[1], time_buf[2], time_buf[3],
time_buf1[4], time_buf1[5], time_buf1[6]);
}
修改后的程序:
LOCAL void ICACHE_FLASH_ATTR second_timer_Callback(void) {
unsigned char i, tmp;
time_buf[1] = DS1302_master_readByte(ds1302_year_add); //年
time_buf[2] = DS1302_master_readByte(ds1302_month_add); //月
time_buf[3] = DS1302_master_readByte(ds1302_date_add); //日
time_buf[4] = DS1302_master_readByte(ds1302_hr_add); //时
time_buf[5] = DS1302_master_readByte(ds1302_min_add); //分
time_buf[6] = (DS1302_master_readByte(ds1302_sec_add)) & 0x7F; //秒
time_buf[7] = DS1302_master_readByte(ds1302_day_add); //周
for (i = 0; i < 8; i++) { //BCD处理
tmp = time_buf[i] / 16;
time_buf[i] = time_buf[i] % 16;
time_buf[i] = time_buf[i] + tmp * 10;
}
os_printf("20%x-%d-%d %d:%d:%d \n", time_buf[1], time_buf[2], time_buf[3],
time_buf[4], time_buf[5], time_buf[6]);
}
根据文档,可以一次性编译多个三元组的。针对 esp8266:
$IDF_PATH/tools/mass_mfg/mfg_gen.py --conf multipule_mfg_config.csv --values my_multipule_mfg_values.csv --prefix Fan --size 0x4000 --version v1
编译时找不到mfg_gen.py,请问你有这个文件吗?发一个给我,谢谢
确认烧录设置没有出错,之前板子多次烧录都没问题,不知道哪天开始烧录都卡在等待上电同步,没法烧录程序了。之前波特率设置都是115200。
最近不是出了一个3.0版本的吗?直接装那个虚拟liunx的环境好像没有办法编译呢。求指教。
2020年春节前直播贴,这里收集各位的难题,一一为大家解决,钉钉直播哦!
直播时间:未定
直播内容:解决各位的关于乐鑫ESP8266/ESP32 微信硬件平台 微信小程序/公众号 服务器开发等问题;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.