Skip to content

Commit

Permalink
Revert device naming scheme to 0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Aug 9, 2020
1 parent 52c1eee commit fa6b574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func NewHandler(id int, m *meters.Manager) *Handler {
// deviceID creates a unique id per device
func (h *Handler) deviceID(id uint8, dev meters.Device) string {
desc := dev.Descriptor()
devID := fmt.Sprintf("%s%d-%d", desc.Type, h.ID, id)
devID := fmt.Sprintf("%s%d.%d", desc.Type, h.ID, id)
if desc.SubDevice > 0 {
devID = fmt.Sprintf("%s.%d", devID, desc.SubDevice)
}
Expand Down

0 comments on commit fa6b574

Please sign in to comment.