2024-12-11 19:21:46 +01:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
|
|
|
|
|
menu "AP Configuration"
|
|
|
|
|
comment "AP Configuration"
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_AP_SSID
|
|
|
|
|
string "Wi-Fi SSID"
|
|
|
|
|
default "myssid"
|
|
|
|
|
help
|
|
|
|
|
Set the SSID of Wi-Fi ap interface.
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_AP_PASSWORD
|
|
|
|
|
string "Wi-Fi Password"
|
|
|
|
|
default "12345678"
|
|
|
|
|
help
|
|
|
|
|
Set the password of Wi-Fi ap interface.
|
|
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
|
|
menu "STA Configuration"
|
|
|
|
|
comment "STA Configuration"
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_STA_SSID
|
|
|
|
|
string "WiFi Station SSID"
|
|
|
|
|
default "mystationssid"
|
|
|
|
|
help
|
|
|
|
|
SSID for the example's sta to connect to.
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_STA_PASSWORD
|
|
|
|
|
string "WiFi Station Password"
|
|
|
|
|
default "mystationpassword"
|
|
|
|
|
help
|
|
|
|
|
WiFi station password for the example to use.
|
|
|
|
|
endmenu
|
|
|
|
|
|
2025-07-09 12:55:46 +02:00
|
|
|
choice EXAMPLE_PEER_LIB
|
|
|
|
|
prompt "Choose peer library"
|
|
|
|
|
default EXAMPLE_PEER_LIB_LIBJUICE
|
|
|
|
|
help
|
|
|
|
|
Choose the peer library to use for WebRTC communication.
|
|
|
|
|
libjuice: Use libjuice library for ICE/STUN/TURN (Performs manual signalling)
|
|
|
|
|
esp_peer: Use ESP-IDF specific peer library
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_PEER_LIB_ESP_PEER
|
|
|
|
|
bool "esp_peer"
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_PEER_LIB_LIBJUICE
|
|
|
|
|
bool "libjuice"
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_WEBRTC_URL
|
|
|
|
|
string "WebRTC server URL"
|
|
|
|
|
depends on EXAMPLE_PEER_LIB_ESP_PEER
|
|
|
|
|
default "https://webrtc.espressif.com/join/"
|
|
|
|
|
help
|
|
|
|
|
URL of WebRTC remote endpoint.
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_WEBRTC_ROOM_ID
|
|
|
|
|
string "WebRTC room ID"
|
|
|
|
|
depends on EXAMPLE_PEER_LIB_ESP_PEER
|
|
|
|
|
default "12345"
|
|
|
|
|
help
|
|
|
|
|
Room ID for WebRTC synchronisation.
|
|
|
|
|
Could be a random number, but the same for both peers.
|
|
|
|
|
|
|
|
|
|
|
2024-12-11 19:21:46 +01:00
|
|
|
config EXAMPLE_MQTT_BROKER_URI
|
|
|
|
|
string "MQTT Broker URL"
|
2025-07-09 12:55:46 +02:00
|
|
|
depends on EXAMPLE_PEER_LIB_LIBJUICE
|
2024-12-11 19:21:46 +01:00
|
|
|
default "mqtt://mqtt.eclipseprojects.io"
|
|
|
|
|
help
|
|
|
|
|
URL of the mqtt broker use for synchronisation and exchanging
|
|
|
|
|
ICE connect info (description and candidates).
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_MQTT_SYNC_TOPIC
|
|
|
|
|
string "MQTT topic for synchronisation"
|
2025-07-09 12:55:46 +02:00
|
|
|
depends on EXAMPLE_PEER_LIB_LIBJUICE
|
2024-12-11 19:21:46 +01:00
|
|
|
default "/topic/serverless_mqtt"
|
|
|
|
|
help
|
|
|
|
|
MQTT topic used fo synchronisation.
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_STUN_SERVER
|
|
|
|
|
string "Hostname of STUN server"
|
2025-07-09 12:55:46 +02:00
|
|
|
depends on EXAMPLE_PEER_LIB_LIBJUICE
|
2024-12-11 19:21:46 +01:00
|
|
|
default "stun.l.google.com"
|
|
|
|
|
help
|
|
|
|
|
STUN server hostname.
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_MQTT_CLIENT_STACK_SIZE
|
|
|
|
|
int "Stack size for mqtt client"
|
|
|
|
|
default 16384
|
|
|
|
|
help
|
|
|
|
|
Set stack size for the mqtt client.
|
|
|
|
|
Need more stack, since calling juice API from the handler.
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_MQTT_BROKER_PORT
|
|
|
|
|
int "port for the mosquitto to listen to"
|
|
|
|
|
default 1883
|
|
|
|
|
help
|
|
|
|
|
This is a port which the local mosquitto uses.
|
|
|
|
|
|
|
|
|
|
choice EXAMPLE_SERVERLESS_ROLE
|
|
|
|
|
prompt "Choose your role"
|
2025-07-09 12:55:46 +02:00
|
|
|
depends on EXAMPLE_PEER_LIB_LIBJUICE
|
2024-12-11 19:21:46 +01:00
|
|
|
default EXAMPLE_SERVERLESS_ROLE_PEER1
|
|
|
|
|
help
|
|
|
|
|
Choose either peer1 or peer2.
|
|
|
|
|
It's not very important which device is peer1
|
|
|
|
|
(peer-1 sends sync messages, peer2 listens for them)
|
|
|
|
|
It is important that we have two peers,
|
|
|
|
|
one with peer1 config, another one with peer2 config
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_SERVERLESS_ROLE_PEER1
|
|
|
|
|
bool "peer1"
|
|
|
|
|
|
|
|
|
|
config EXAMPLE_SERVERLESS_ROLE_PEER2
|
|
|
|
|
bool "peer2"
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
|
|
endmenu
|