Can you provide an example of connecting and specifying a last will message? I have tried using the function
bool MQTT::connect(const char *id, const char *user, const char *pass, const char* willTopic, EMQTT_QOS willQos, uint8_t willRetain, const char* willMessage, bool cleanSession, MQTT_VERSION version)
however I get errors about no matching function when I attempt to compile. I have very carefully checked the data types I am passing to the function and believe I am using the correct types though.
Can you provide an example of connecting and specifying a last will message? I have tried using the function
bool MQTT::connect(const char *id, const char *user, const char *pass, const char* willTopic, EMQTT_QOS willQos, uint8_t willRetain, const char* willMessage, bool cleanSession, MQTT_VERSION version)
however I get errors about no matching function when I attempt to compile. I have very carefully checked the data types I am passing to the function and believe I am using the correct types though.