On 30 January 2015 at 22:15:51, nick (
nico.sw...@gmail.com) wrote:
> > - when a user turns its WIFI/3g/... off while an MQTT connection
> is setup, this triggers a TIMEOUT there in the plugin:
>
> handle_info(keepalive_timeout, State = #state { conn_name
> = ConnStr }) ->
> log(error, "closing MQTT connection ~p (keepalive timeout)~n",
> [ConnStr]),
> {stop, {shutdown, keepalive_timeout}, State};
>
> however this does not trigger the function: send_will_and_terminate
>
> hence the LWT not sent.
Thank you for doing all the debugging work, this seems plausible. Should be an easy fix early next week :)