-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix bugs and format code for some compile. #206
base: develop
Are you sure you want to change the base?
Commits on Apr 2, 2020
-
fixbug: Must set rc to 0 when error out from routine "MQTTDeserialize…
…_publish", because routine "MQTTPacket_decodeBuf" has changed the rc to other value.
wangxianwen committedApr 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 45a272b - Browse repository at this point
Copy the full SHA 45a272bView commit details -
fixbug: some linux platform can not support char over 128 and suback …
…routine can return data over 128, so change char to unsigned char.
wangxianwen committedApr 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 546b160 - Browse repository at this point
Copy the full SHA 546b160View commit details -
1.some old compile cannot support defining variable after routine process sentence. 2. some compile can not support setting value in 'if' condition. 3. some old compile will err when variable name same with structure type name.
wangxianwen committedApr 2, 2020 Configuration menu - View commit details
-
Copy full SHA for ec4cc35 - Browse repository at this point
Copy the full SHA ec4cc35View commit details -
fixbug: Subscribe routine will not return FAILURE when deserialize su…
…back error or when data is 0x80.
wangxianwen committedApr 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 62bcc93 - Browse repository at this point
Copy the full SHA 62bcc93View commit details
Commits on Apr 3, 2020
-
add user parameter for topic callback roution. caution: This version …
…will not compatibility with older one, because modify the routine's parameter.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for cf6d7d3 - Browse repository at this point
Copy the full SHA cf6d7d3View commit details -
add send package try count for som poor wifi environment.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for e14f995 - Browse repository at this point
Copy the full SHA e14f995View commit details -
fix compile error for sentence.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for f39513e - Browse repository at this point
Copy the full SHA f39513eView commit details -
fixbug: mqtt task will occupy all the cpu time,so add waiting time fo…
…r other thread.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for e32c61f - Browse repository at this point
Copy the full SHA e32c61fView commit details -
optimize code: add more 500ms for data waitting when have readed othe…
…r package type in poor wifi condition,because handle other package will occupy cpu time.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for 3fc7444 - Browse repository at this point
Copy the full SHA 3fc7444View commit details -
1. The back task only wait for a small time when no data in reading buffer, and this can give other code cpu time for back task. 2. This 5ms do not have effect on wait_for routine.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for bc91297 - Browse repository at this point
Copy the full SHA bc91297View commit details -
1.add try count for connect process. 2.optimize the time set for publish process.
wangxianwen committedApr 3, 2020 Configuration menu - View commit details
-
Copy full SHA for a94ddd9 - Browse repository at this point
Copy the full SHA a94ddd9View commit details
Commits on Jun 15, 2020
-
add user defined topic structure room and max topic number.
wangxianwen committedJun 15, 2020 Configuration menu - View commit details
-
Copy full SHA for 312b290 - Browse repository at this point
Copy the full SHA 312b290View commit details -
wangxianwen committed
Jun 15, 2020 Configuration menu - View commit details
-
Copy full SHA for e5c892f - Browse repository at this point
Copy the full SHA e5c892fView commit details
Commits on Sep 2, 2020
-
1、初始化时增加内存分配函数,底层根据消息体大小自动分配空间,不再由用户指定固定大小,更灵活;
2、订阅消息大小也不再制定个数,根据空间自动增长。 3、默认发送重试次数6次,适应网络抖动情况。
wangxianwen committedSep 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 23ae8f1 - Browse repository at this point
Copy the full SHA 23ae8f1View commit details
Commits on Sep 23, 2020
-
修改心跳逻辑,将心跳包平均分配到1-1.5倍的keepalive时间内,避免某一次心跳丢失就认为连接断开,适应弱网环境。
wangxianwen committedSep 23, 2020 Configuration menu - View commit details
-
Copy full SHA for 48e2faa - Browse repository at this point
Copy the full SHA 48e2faaView commit details
Commits on Sep 27, 2020
-
wangxianwen committed
Sep 27, 2020 Configuration menu - View commit details
-
Copy full SHA for 4a4ac69 - Browse repository at this point
Copy the full SHA 4a4ac69View commit details
Commits on Sep 30, 2020
-
修改心跳逻辑,修补bug:当发送心跳时,正好有数据发送,导致lastsend被更新,cnt值不为0且ping_stand为0,导致下一次心…
…跳时不发送ping,直接判断pong,服务端超时断开。
wangxianwen committedSep 30, 2020 Configuration menu - View commit details
-
Copy full SHA for 0dac1b7 - Browse repository at this point
Copy the full SHA 0dac1b7View commit details
Commits on Apr 8, 2021
-
wangxianwen committed
Apr 8, 2021 Configuration menu - View commit details
-
Copy full SHA for 4e61119 - Browse repository at this point
Copy the full SHA 4e61119View commit details
Commits on Jun 4, 2021
-
把平台相关的代码通过结构体传输,断开对不同平台代码的依赖关系。
wangxianwen committedJun 4, 2021 Configuration menu - View commit details
-
Copy full SHA for 6ec099c - Browse repository at this point
Copy the full SHA 6ec099cView commit details
Commits on Jun 7, 2021
-
wangxianwen committed
Jun 7, 2021 Configuration menu - View commit details
-
Copy full SHA for 21504ce - Browse repository at this point
Copy the full SHA 21504ceView commit details
Commits on Jul 18, 2021
-
wangxianwen committed
Jul 18, 2021 Configuration menu - View commit details
-
Copy full SHA for bc1cbe1 - Browse repository at this point
Copy the full SHA bc1cbe1View commit details
Commits on Jul 29, 2021
-
1、某些平台当网络异常后,如果调用disconnect函数,里面的write函数会引起系统崩溃,增加开关,可以关闭对mqtt数据包的发送。
2、增加获取剩余心跳时间的函数,某些低功耗平台可以在这个间隔时间内,做一些业务处理。
wangxianwen committedJul 29, 2021 Configuration menu - View commit details
-
Copy full SHA for c836fec - Browse repository at this point
Copy the full SHA c836fecView commit details -
wangxianwen committed
Jul 29, 2021 Configuration menu - View commit details
-
Copy full SHA for ef0330f - Browse repository at this point
Copy the full SHA ef0330fView commit details -
wangxianwen committed
Jul 29, 2021 Configuration menu - View commit details
-
Copy full SHA for f9de2bf - Browse repository at this point
Copy the full SHA f9de2bfView commit details -
1、降低心跳重试次数,当弱网情况下,发送次数越多压力越大,增加了发送间隔;
2、增加nopong接口,部分平台需要mqtt库支持服务器不回复pong帧的情况,主要用在芯片低功耗状态下;
wangxianwen committedJul 29, 2021 Configuration menu - View commit details
-
Copy full SHA for 5ae6e03 - Browse repository at this point
Copy the full SHA 5ae6e03View commit details
Commits on Aug 21, 2021
-
wangxianwen committed
Aug 21, 2021 Configuration menu - View commit details
-
Copy full SHA for 8c4331f - Browse repository at this point
Copy the full SHA 8c4331fView commit details
Commits on Sep 3, 2021
-
2、增加使用小内存的publish函数,不再复制用户数据,直接发送消息头和用户数据内容,降低内存使用,减少内存拷贝。
wangxianwen committedSep 3, 2021 Configuration menu - View commit details
-
Copy full SHA for 41bf11c - Browse repository at this point
Copy the full SHA 41bf11cView commit details
Commits on Dec 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b59b839 - Browse repository at this point
Copy the full SHA b59b839View commit details -
修复bug:将函数接口的Qos枚举类型换成int,因为函数内部会对该变量按照int类型取地址,如果用户传递Qos类型,则强制转换时会出现c…
…har转int的地址越界问题;
wangxianwen committedDec 15, 2021 Configuration menu - View commit details
-
Copy full SHA for cb32048 - Browse repository at this point
Copy the full SHA cb32048View commit details
Commits on Jul 19, 2022
-
mqtt开源库在解析suback帧时,若发送单包订阅请求,收到了空中遗留的多包订阅请求回复帧后,会出现数组操作溢出的问题;该问题是在极端断线环境下发现(先订阅多包,并紧急断线触发重试操作,再马上恢复网络,并快速订阅单包)。
wangxianwen committedJul 19, 2022 Configuration menu - View commit details
-
Copy full SHA for 02bd866 - Browse repository at this point
Copy the full SHA 02bd866View commit details