Closed rianoc closed 3 years ago
One problem - the mac build is failing on Travis. The problem is the use of strndup which I believe is a GNU extension that isn't support on earlier OS X builds. We could bump the travis OS X image (as is done by arrowkdb) but it's probably easier to change the strndup to a malloc + memcpy (or just use plain strdup if the strings don't contain \0 chars)
Enable the library to use last will during connection
https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/struct_m_q_t_t_client__will_options.html
To test:
mosquitto_sub
will print: