SystemAgent/misc/agent_config.cfg.example

102 lines
2.3 KiB
Plaintext

version = "1.0";
agent: {
common: {
log_level = 1;
};
devices: {
dht: {
i2c: {
path = "/dev/i2c-1";
addr = 0x76;
};
};
tvoc: {
i2c: {
path = "/dev/i2c-1";
addr = 0x5a;
};
nwake_pin: {
path = "/dev/gpiochip1";
line = 5;
};
};
lcd: {
spi: {
path = "/dev/spidev0.0";
clock_speed = 10000000;
};
dc_pin: {
path = "/dev/gpiochip1";
line = 229;
};
reset_pin: {
path = "/dev/gpiochip1";
line = 230;
};
backlight_pin: {
path = "/dev/gpiochip1";
line = 231;
};
};
stick: {
up: {
path = "/dev/gpiochip2";
line = 232;
};
down: {
path = "/dev/gpiochip2";
line = 233;
};
left: {
path = "/dev/gpiochip2";
line = 234;
};
right: {
path = "/dev/gpiochip2";
line = 235;
};
push: {
path = "/dev/gpiochip2";
line = 236;
};
};
};
libraries: {
lvgl: {
fs_base = ""; # This will be used as LVGL base file system and will be mounted at drive A:
logging_enabled = true;
};
mqtt: {
server: {
host = "127.0.0.1";
port = 1883;
keepalive = 30;
topic = "";
};
client: {
id_prefix = "";
username = "";
password = "";
};
tls: {
enabled = false;
psk = "";
ca_file = ""; # Either ca_file or ca_path must not be null.
ca_path = "";
client_cert_file = "";
client_key_file = "";
};
};
};
theme: {
background = "A:background.bin";
};
};