Closed adamdewey closed 6 months ago
Fixed with #274
@adamdewey @mark-prins Tested on coldchain V0.5.6 I tested this by upgrading , installing and uninstalling coldchain and cannot recreate the issue. But it seems like the sensors are duplicated when we downgrade the application in the lower version, hopefully the client won't do that😁
Nice one @AnushaUp - yeah I don't think we need to worry about them downgrading the app to lower than V0.5.6 :)
Describe the bug If a sensor is unlinked from CCA and then linked again (a common occurrence if the app has to be re-installed) then a duplicate sensor instance is created on the server:
This causes issues for users down the line when doing something with the sensor - assigning a location, creating a notification etc as they don't know which is the true active sensor
To Reproduce Steps to reproduce the behavior:
Expected behavior System should be able to identify sensor as being previously linked to the Store (via mac / serial number) and re-use that sensor instance instead of creating a new one.
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.