Skip to content
Snippets Groups Projects
Commit f068c98e authored by Carlo Guarnieri Calo' Carducci's avatar Carlo Guarnieri Calo' Carducci
Browse files

repo: add kconfig build configuration

parent 06f27298
Branches
No related tags found
No related merge requests found
menu "LEGOS"
choice
prompt "Target"
default TEST
comment "Distribution grid"
config BRANCH
bool "Branch"
if BRANCH
config ENTITY
string
default "branch"
endif
config SUBSTATION
bool "Substation"
if SUBSTATION
config ENTITY
string
default "substation"
endif
comment "Consumers"
config DATACENTER
bool "Data center"
if DATACENTER
config ENTITY
string
default "data_center"
endif
config ECSTATION
bool "EC station"
if ECSTATION
config ENTITY
string
default "ec_station"
endif
config FACTORY
bool "Factory"
if FACTORY
config ENTITY
string
default "factory"
endif
config HOSPITAL
bool "Hospital"
if HOSPITAL
config ENTITY
string
default "hospital"
endif
config SKYSCRAPER
bool "Skyscraper"
if SKYSCRAPER
config ENTITY
string
default "skyscraper"
endif
config STADIUM
bool "Stadium"
if STADIUM
config ENTITY
string
default "stadium"
endif
comment "Prosumers"
config HOUSE
bool "House"
if HOUSE
config ENTITY
string
default "house"
endif
config SUPERMARKET
bool "Supermarket"
if SUPERMARKET
config ENTITY
string
default "supermarket"
endif
comment "Producers"
config POWERPLANT
bool "Power plant"
if POWERPLANT
config ENTITY
string
default "power_plant"
endif
config SOLARFARM
bool "Solar farm"
if SOLARFARM
config ENTITY
string
default "solar_farm"
endif
config WINDFARM
bool "Wind farm"
if WINDFARM
config ENTITY
string
default "wind_farm"
endif
config TEST
bool "Test"
if TEST
config ENTITY
string
default "test"
endif
endchoice
menu "WiFi"
config WIFI_STA_SSID
string "WiFi SSID"
default "FRITZ!Box 7530 TW"
help
SSID (network name) for LEGOS entity to connect to.
config WIFI_STA_PASS
string "WiFi PASS"
default "31361912602018850594"
help
Password for WiFi network.
endmenu
menu "MQTT"
config MQTT_USER
string "Username"
default "roger"
help
Broker username.
config MQTT_PASS
string "Password"
default "password"
help
Broker password.
config MQTT_HOST
string "Host name or IP address"
default "192.168.1.1"
help
Broker address.
config MQTT_PORT
int "Port"
default 1883
help
Broker port.
config MQTT_RATE
int "Reporting rate"
default 1
help
Reporting rate (Hz).
choice
prompt "QoS level"
default MQTT_QOS_LEVEL_0
config MQTT_QOS_LEVEL_0
bool "At most once (0)"
if MQTT_QOS_LEVEL_0
config MQTT_QOS_LEVEL
int
default 0
endif
config MQTT_QOS_LEVEL_1
bool "At least once (1)"
if MQTT_QOS_LEVEL_1
config MQTT_QOS_LEVEL
int
default 1
endif
config MQTT_QOS_LEVEL_2
bool "Exactly once (2)"
if MQTT_QOS_LEVEL_2
config MQTT_QOS_LEVEL
int
default 2
endif
endchoice
choice
prompt "Transport"
default MQTT_TRANSPORT_OVER_TCP
config MQTT_TRANSPORT_OVER_TCP
bool "TCP"
if MQTT_TRANSPORT_OVER_TCP
config MQTT_TRANSPORT
int
default 1
endif
config MQTT_TRANSPORT_OVER_SSL
bool "SSL"
if MQTT_TRANSPORT_OVER_SSL
config MQTT_TRANSPORT
int
default 2
endif
endchoice
endmenu
endmenu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment