This message (WillMessage) will published to WillTopic in case of involuntary client disconnection. void GSM_MQTT::OnConnect(void) This function is called when mqqt connection is established. put your ...