Set last will in publish test to increase coverage
This commit is contained in:
parent
0a56f00222
commit
9b89eba536
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ int main(int argc, char **argv) {
|
|||
|
||||
config.client_id = "libmqtt_testsuite";
|
||||
config.hostname = "localhost";
|
||||
config.port = 1883;
|
||||
|
||||
config.last_will_topic = "testsuite/last_will";
|
||||
config.last_will_message = "RIP";
|
||||
|
||||
LOG("Trying to connect to %s", config.hostname);
|
||||
MQTTHandle *mqtt = mqtt_connect(&config, mqtt_connected, NULL, err_handler);
|
||||
|
|
Loading…
Reference in a new issue