Im noob in mongoose OS.
Im trying to change the default value of aws.thing_name what is NULL ("").
in the mos.yml file i added:
config_schema:
[“aws.thing_name”, “DESIRED_NAME”]
libs:
but this did not work,
this form is OK to change this kind of value (aws.thing_name)?
I wonder if there are other means to change parameter “aws.thing_name”
Please give me some advice.
Thank you!
nliviu
June 14, 2019, 2:08pm
2
The default is esp32_ABCDEF
where ABCDEF
are the last 6 hex digits of the MAC address when it was not set in mos.yml
:
mos config-get aws.thing_name
esp32_D5B769
You can change it either setting it the mos.yml
of your application or using the mos tool.
- ["aws.thing_name", "aws_thing1"]
After modifying mos.yml
, build and flash.
mos config-get aws.thing_name
aws_thing1
mos config-set aws.thing_name="thing2"
Getting configuration...
Setting new configuration...
mos config-get aws.thing_name
thing2