paho.mqtt.embedded-c icon indicating copy to clipboard operation
paho.mqtt.embedded-c copied to clipboard

For issue #223

Open vinhlq opened this issue 3 years ago • 1 comments

  • In the sendPacket() function, when timer is expired mqttwrite() function is not excute. So to give it a change to send ack packet (issue #223), we need to define a minimal timeout
  • The send packet timeout is defined by MIN_SEND_PACKET_TIMEOUT_MS macro

vinhlq avatar Nov 21 '21 09:11 vinhlq

It is a bug. Please refer to 287 line of https://github.com/evrythng/evrythng-c-library/blob/master/embedded-mqtt/MQTTClient-C/src/MQTTClient.c, and change platform_timer_countdown(&t, c->command_timeout_ms); to TimerCountdownMS(timer, c->command_timeout_ms);

xw0323 avatar Nov 29 '21 07:11 xw0323