Add ThingSet passwords to Kconfig

This commit is contained in:
Martin Jäger
2020-05-06 12:53:26 +02:00
parent 5523f93544
commit d2dd50fe99
2 changed files with 16 additions and 4 deletions
+10
View File
@@ -163,6 +163,16 @@ config EXT_THINGSET_CAN
depends on CAN
bool "ThingSet CAN interface"
config THINGSET_USER_PASSWORD
depends on EXT_THINGSET_SERIAL || EXT_THINGSET_CAN
string "ThingSet user password"
default "user123"
config THINGSET_MAKER_PASSWORD
depends on EXT_THINGSET_SERIAL || EXT_THINGSET_CAN
string "ThingSet maker password"
default "maker456"
config DEVICE_ID
int "Initial device ID for communication interfaces"
default 0
+6 -4
View File
@@ -41,11 +41,13 @@ void main(void)
CONFIG_BAT_DEFAULT_CAPACITY_AH);
battery_conf_overwrite(&bat_conf, &bat_conf_user); // initialize conf_user with same values
// Configuration from EEPROM
// read custom configuration from EEPROM
data_objects_read_eeprom();
ts.set_conf_callback(data_objects_update_conf); // after each configuration change, data should be written back to EEPROM
//ts.set_user_password(THINGSET_USER_PASSWORD); // passwords defined in config.h (see template)
//ts.set_maker_password(THINGSET_MAKER_PASSWORD);
// after each configuration change, data should be written back to EEPROM
ts.set_conf_callback(data_objects_update_conf);
ts.set_user_password(CONFIG_THINGSET_USER_PASSWORD);
ts.set_maker_password(CONFIG_THINGSET_MAKER_PASSWORD);
// Data Acquisition (DAQ) setup
daq_setup();