fix(esp_modem): Examples to configure MQTT Broker

This commit is contained in:
Franz Höpfinger
2022-10-04 10:21:38 +02:00
committed by David Cermak
parent ebc36a3519
commit 71a2388acb
2 changed files with 7 additions and 1 deletions

View File

@ -119,4 +119,10 @@ menu "Example Configuration"
help
Close the multiplexed mode at the end of the example and rollback to command mode.
config BROKER_URI
string "Broker URL"
default "mqtt://test.mosquitto.org"
help
URL of an mqtt broker which this example connects to.
endmenu

View File

@ -34,7 +34,7 @@
#define EXAMPLE_FLOW_CONTROL ESP_MODEM_FLOW_CONTROL_HW
#endif
#define BROKER_URL "mqtt://mqtt.eclipseprojects.io"
#define BROKER_URL CONFIG_BROKER_URI
using namespace esp_modem;