杰杰

Results 5 issues of 杰杰

As a client developed in accordance with the standard MQTT protocol, you may need to add new features on some platforms or meet some more convenient needs. You can speak...

enhancement

![image](https://user-images.githubusercontent.com/6436021/92376088-a2ca9400-f134-11ea-8a59-55b5501755df.png) c->mqtt_network在network_release里面被清零了,所以不用释放,直接屏蔽 platform_memory_free(c->mqtt_network),添加c->mqtt_write_buf和c->mqtt_read_buf内存释放,就可以了 _Originally posted by @Torchwoods in https://github.com/jiejieTop/mqttclient/issues/13#issuecomment-688220242_

As a client developed in accordance with the standard HTTP protocol, you may need to add new features on some platforms or meet some more convenient needs. You can speak...

enhancement

在`mqtt_cycle()`函数中,有以下代码,当qos2报文到来的时候,调用`deliver_message()`函数去处理了,并且发送`PUBREC`应答报文,但是当网络状况不良的时候,服务器由于没有收到这个`PUBREC`应答报文的时候,服务器就会重发qos2报文,此时`mqtt_cycle()`函数依旧会调用`deliver_message()`函数去处理这个qos2报文,这样子就会处理两次报文,而不是有且只有一次qos2.... ```c case PUBLISH: { MQTTString topic_name; mqtt_message msg; int intQoS; if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topic_name, (unsigned char **)&msg.payload, (int *)&msg.payloadlen, c->readbuf, c->readbuf_size) != 1) goto __cycle_exit; msg.qos =...

如题:主要是使用了 std::uint8_t std::uint16_t等数据类型