File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ type General struct {
27
27
NCSVersion string `yaml:"ncs_version"`
28
28
ZephyrBase string `yaml:"zephyr_base"`
29
29
30
- Manufacturer string
31
- DeviceName string
30
+ Manufacturer string `yaml:"manufacturer"`
31
+ DeviceName string `yaml:"device_name"`
32
32
// Zephyr name for the board
33
33
Board string
34
34
RunEvery time.Duration
@@ -55,6 +55,8 @@ func ParseFromFile(configPath string) (*Device, error) {
55
55
RunEvery : time .Minute ,
56
56
NCSToolChainBase : "~/ncs" ,
57
57
NCSVersion : "v2.5.0" ,
58
+ Manufacturer : "FFexix113" ,
59
+ DeviceName : "dongle" ,
58
60
},
59
61
}
60
62
Original file line number Diff line number Diff line change @@ -76,10 +76,10 @@ ZBOSS_DECLARE_DEVICE_CTX_{{len .Device.Sensors}}_EP(
76
76
);
77
77
78
78
/* Manufacturer name (32 bytes). */
79
- #define DEVICE_INIT_BASIC_MANUF_NAME "FFenix113 "
79
+ #define DEVICE_INIT_BASIC_MANUF_NAME "{ { .Device.General.Manufacturer } } "
80
80
81
81
/* Model number assigned by manufacturer (32-bytes long string). */
82
- #define DEVICE_INIT_BASIC_MODEL_ID "dongle "
82
+ #define DEVICE_INIT_BASIC_MODEL_ID "{ { .Device.General.DeviceName } } "
83
83
84
84
/* First 8 bytes specify the date of manufacturer of the device
85
85
* in ISO 8601 format (YYYYMMDD). The rest (8 bytes) are manufacturer specific.
You can’t perform that action at this time.
0 commit comments