我觉得这个还好吧,因为大部分人都会写在默认的位置,如果要按照你的想要的功能,那么我读取的时候不带layer标号,写入的时候必须都写到layer15这一层。我觉得这个真的没必要,像蓝牙地址,蓝牙名称这些,都可以在代码里面动态更改的。附上一段官方的说明
The configuration architecture implements a layered approach to each subsystem's configuration. The
configuration consists of up to 15 layers, numbered 1 to 15, each represented by a single file. The
overall configuration is simply the combined contents of these files.
Where the same key is set in more than one layer, the higher-numbered layer takes precedence over
the lower-numbered. This approach allows the configuration data to be split between several files.