refac(pkg/types): remove deprecated prefix name of struct attributes
This commit is contained in:
@ -46,8 +46,8 @@ var rootCmd = &cobra.Command{
|
||||
// Default configuration
|
||||
cnf := config.Configuration{
|
||||
Device: &types.Device{
|
||||
DeviceID: uuid.NewV4().String(),
|
||||
DeviceName: hostname,
|
||||
ID: uuid.NewV4().String(),
|
||||
Name: hostname,
|
||||
CreationDate: t,
|
||||
},
|
||||
StorageEndpoint: "file:///var/log/flucky/logfile.csv",
|
||||
|
@ -38,10 +38,10 @@ flucky sensor add --i2c-bus 1 --i2c-address 0x76 wetter-station BME280`,
|
||||
|
||||
// create new sensor struct
|
||||
sensor := &types.Sensor{
|
||||
SensorName: args[0],
|
||||
SensorModel: sensorModel,
|
||||
SensorLocation: location,
|
||||
SensorEnabled: enabled,
|
||||
Name: args[0],
|
||||
Model: sensorModel,
|
||||
Location: location,
|
||||
Enabled: enabled,
|
||||
}
|
||||
|
||||
// determine gpio port if set
|
||||
|
Reference in New Issue
Block a user