mqtt tests: connect to local broker when running in CI to make the tests more reliable

This commit is contained in:
David Cermak
2018-12-07 15:15:34 +01:00
parent ad5d81df04
commit b13a536041
16 changed files with 262 additions and 133 deletions

View File

@@ -118,7 +118,7 @@ static void wifi_init(void)
static void mqtt_app_start(void)
{
const esp_mqtt_client_config_t mqtt_cfg = {
.uri = "ws://iot.eclipse.org:80/ws",
.uri = CONFIG_BROKER_URI,
.event_handle = mqtt_event_handler,
// .user_context = (void *)your_context
};