Skip to content
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

Open
wants to merge 30 commits into
base: develop
Choose a base branch
from

Commits on Apr 2, 2020

  1. 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 committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    45a272b View commit details
    Browse the repository at this point in the history
  2. 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 committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    546b160 View commit details
    Browse the repository at this point in the history
  3. format code:

    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 committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    ec4cc35 View commit details
    Browse the repository at this point in the history
  4. fixbug: Subscribe routine will not return FAILURE when deserialize su…

    …back error or when data is 0x80.
    wangxianwen committed Apr 2, 2020
    Configuration menu
    Copy the full SHA
    62bcc93 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. add user parameter for topic callback roution. caution: This version …

    …will not compatibility with older one, because modify the routine's parameter.
    wangxianwen committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    cf6d7d3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e14f995 View commit details
    Browse the repository at this point in the history
  3. fix compile error for sentence.

    wangxianwen committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    f39513e View commit details
    Browse the repository at this point in the history
  4. fixbug: mqtt task will occupy all the cpu time,so add waiting time fo…

    …r other thread.
    wangxianwen committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    e32c61f View commit details
    Browse the repository at this point in the history
  5. 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 committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    3fc7444 View commit details
    Browse the repository at this point in the history
  6. optimize:

    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 committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    bc91297 View commit details
    Browse the repository at this point in the history
  7. optimize:

    1.add try count for connect process.
    2.optimize the time set for publish process.
    wangxianwen committed Apr 3, 2020
    Configuration menu
    Copy the full SHA
    a94ddd9 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2020

  1. Configuration menu
    Copy the full SHA
    312b290 View commit details
    Browse the repository at this point in the history
  2. 解决编译错误。

    wangxianwen committed Jun 15, 2020
    Configuration menu
    Copy the full SHA
    e5c892f View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2020

  1. 1、初始化时增加内存分配函数,底层根据消息体大小自动分配空间,不再由用户指定固定大小,更灵活;

    2、订阅消息大小也不再制定个数,根据空间自动增长。
    3、默认发送重试次数6次,适应网络抖动情况。
    wangxianwen committed Sep 2, 2020
    Configuration menu
    Copy the full SHA
    23ae8f1 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. Configuration menu
    Copy the full SHA
    48e2faa View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2020

  1. Configuration menu
    Copy the full SHA
    4a4ac69 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2020

  1. 修改心跳逻辑,修补bug:当发送心跳时,正好有数据发送,导致lastsend被更新,cnt值不为0且ping_stand为0,导致下一次心…

    …跳时不发送ping,直接判断pong,服务端超时断开。
    wangxianwen committed Sep 30, 2020
    Configuration menu
    Copy the full SHA
    0dac1b7 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2021

  1. Configuration menu
    Copy the full SHA
    4e61119 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2021

  1. Configuration menu
    Copy the full SHA
    6ec099c View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2021

  1. 更新代码,解决编译错误。

    wangxianwen committed Jun 7, 2021
    Configuration menu
    Copy the full SHA
    21504ce View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2021

  1. 内部函数添加static,消除警告。

    wangxianwen committed Jul 18, 2021
    Configuration menu
    Copy the full SHA
    bc1cbe1 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. 1、某些平台当网络异常后,如果调用disconnect函数,里面的write函数会引起系统崩溃,增加开关,可以关闭对mqtt数据包的发送。

    2、增加获取剩余心跳时间的函数,某些低功耗平台可以在这个间隔时间内,做一些业务处理。
    wangxianwen committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    c836fec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ef0330f View commit details
    Browse the repository at this point in the history
  3. 重新添加遗漏项

    wangxianwen committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    f9de2bf View commit details
    Browse the repository at this point in the history
  4. 1、降低心跳重试次数,当弱网情况下,发送次数越多压力越大,增加了发送间隔;

    2、增加nopong接口,部分平台需要mqtt库支持服务器不回复pong帧的情况,主要用在芯片低功耗状态下;
    wangxianwen committed Jul 29, 2021
    Configuration menu
    Copy the full SHA
    5ae6e03 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2021

  1. 增加主动触发心跳的函数。

    wangxianwen committed Aug 21, 2021
    Configuration menu
    Copy the full SHA
    8c4331f View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. 1、增加一次订阅多个topic的函数;

    2、增加使用小内存的publish函数,不再复制用户数据,直接发送消息头和用户数据内容,降低内存使用,减少内存拷贝。
    wangxianwen committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    41bf11c View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. 1、同步模式下,增加是否阻塞等待的入参;

    2、增加异步模式,可以提高多线程调用发送时的传输效率;
    wangxianwen committed Dec 15, 2021
    Configuration menu
    Copy the full SHA
    b59b839 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb32048 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. bug修复:

    mqtt开源库在解析suback帧时,若发送单包订阅请求,收到了空中遗留的多包订阅请求回复帧后,会出现数组操作溢出的问题;该问题是在极端断线环境下发现(先订阅多包,并紧急断线触发重试操作,再马上恢复网络,并快速订阅单包)。
    wangxianwen committed Jul 19, 2022
    Configuration menu
    Copy the full SHA
    02bd866 View commit details
    Browse the repository at this point in the history