Remove port as per new Espressif MQTT lib
This commit is contained in:
@@ -63,9 +63,7 @@ static void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_
|
|||||||
|
|
||||||
static void mqtt_init(void) {
|
static void mqtt_init(void) {
|
||||||
esp_mqtt_client_config_t mqtt_cfg = {};
|
esp_mqtt_client_config_t mqtt_cfg = {};
|
||||||
|
|
||||||
mqtt_cfg.broker.address.uri = MQTT_ADDR;
|
mqtt_cfg.broker.address.uri = MQTT_ADDR;
|
||||||
mqtt_cfg.broker.address.port = MQTT_PORT;
|
|
||||||
mqtt_cfg.credentials.username = MQTT_USER;
|
mqtt_cfg.credentials.username = MQTT_USER;
|
||||||
mqtt_cfg.credentials.authentication.password = MQTT_PASS;
|
mqtt_cfg.credentials.authentication.password = MQTT_PASS;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user