MaJerle / lwcell

Lightweight cellular modem host AT library
MIT License
395 stars 147 forks source link

MQTT - Keep-alive mechanism - Receive callback #35

Closed dslc closed 4 years ago

dslc commented 4 years ago

I don't think that the client->poll_time should be reset in the mqtt_recv_cb(): https://github.com/MaJerle/gsm-at-lib/blob/develop/gsm_at_lib/src/apps/mqtt/gsm_mqtt_client.c#L848 .

The Mosquitto server I am testing with was closing the connection until I commented this line out.

Scenario:

MaJerle commented 4 years ago

Fixed on develop branch. Thanks

dslc commented 4 years ago

@MaJerle Thank you!