mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-16 12:02:11 +02:00
fix(esp_modem): Examples to configure MQTT Broker
This commit is contained in:
committed by
David Cermak
parent
ebc36a3519
commit
71a2388acb
@ -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
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user