DPIclimate / broker

3 stars 3 forks source link

Add a pause feature to the physical/logical mapping #51

Closed dajtxx closed 10 months ago

dajtxx commented 11 months ago

It would be useful to be able to pause or temporarily disable a mapping, for example when testing an existing device in the field with the expectation that junk data will be transmitted.

Add a boolean enabled column to the mapping table that defaults to true.

Change the webapp physical and logical device pages to allow this column to be changed if there is a current mapping for the device.

Change the logical mapper to respect the value of the column.

Add a new operation to the map command of the CLI to set the value of the column using either the physical or logical device id, show an error if there is no current mapping for that device.