mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-03 02:56:35 +08:00
94 lines
1.8 KiB
Plaintext
94 lines
1.8 KiB
Plaintext
menu "Example Configuration"
|
|
|
|
config WIFI_SSID
|
|
string "WiFi SSID"
|
|
default "myssid"
|
|
help
|
|
SSID (network name) for the example to connect to.
|
|
|
|
config WIFI_PASSWORD
|
|
string "WiFi Password"
|
|
default "mypassword"
|
|
help
|
|
WiFi password (WPA or WPA2) for the example to use.
|
|
Can be left blank if the network has no security set.
|
|
|
|
config MQTT_BROKER
|
|
string "MQTT broker"
|
|
default "mosquitto.org"
|
|
help
|
|
MQTT broker which you want to login, either IP address or domain name is OK.
|
|
|
|
config MQTT_PORT
|
|
int "Default MQTT port"
|
|
default 1883
|
|
help
|
|
MQTT port.
|
|
|
|
config MQTT_SUB_TOPIC
|
|
string "MQTT subscribe topic"
|
|
default "/espressif/sub"
|
|
help
|
|
MQTT subscribe topic to MQTT broker.
|
|
|
|
choice MQTT_SUB_QOS
|
|
prompt "MQTT Subscribe QoS"
|
|
default SUB_QOS1
|
|
help
|
|
MQTT subcribe QoS level.
|
|
|
|
config SUB_QOS0
|
|
bool "QOS0"
|
|
config SUB_QOS1
|
|
bool "QOS1"
|
|
config SUB_QOS2
|
|
bool "QOS2"
|
|
endchoice
|
|
|
|
config DEFAULT_MQTT_SUB_QOS
|
|
int
|
|
default 0 if SUB_QOS0
|
|
default 1 if SUB_QOS1
|
|
default 2 if SUB_QOS2
|
|
|
|
config MQTT_PUB_TOPIC
|
|
string "MQTT publish topic"
|
|
default "/espressif/pub"
|
|
help
|
|
MQTT publish topic to MQTT broker.
|
|
|
|
choice MQTT_PUB_QOS
|
|
prompt "MQTT publish QoS"
|
|
default PUB_QOS1
|
|
help
|
|
MQTT publish QoS level.
|
|
|
|
config PUB_QOS0
|
|
bool "QOS0"
|
|
config PUB_QOS1
|
|
bool "QOS1"
|
|
config PUB_QOS2
|
|
bool "QOS2"
|
|
endchoice
|
|
|
|
config DEFAULT_MQTT_PUB_QOS
|
|
int
|
|
default 0 if PUB_QOS0
|
|
default 1 if PUB_QOS1
|
|
default 2 if PUB_QOS2
|
|
|
|
config MQTT_PUBLISH_INTERVAL
|
|
int "MQTT publish interval(ms)"
|
|
default 0
|
|
help
|
|
Default MQTT publish message interval.
|
|
|
|
config MQTT_PAYLOAD_BUFFER
|
|
int "MQTT payload size(Bytes)"
|
|
default 1460
|
|
help
|
|
1460~2048 is recommended.
|
|
MQTT payload size.
|
|
|
|
endmenu
|