Closed lazypower closed 5 years ago
yeah, basically all led and lock devices currently use the same global state (e.g. https://github.com/vapor-ware/synse-emulator-plugin/blob/master/pkg/devices/led.go#L18) so it you set it for one, you set it for all.
with the previous work to update readable device ranges via write (#38) this is actually super easy to fix -- instead of using global stat variables, just add an entry in the global device state map (https://github.com/vapor-ware/synse-emulator-plugin/blob/master/pkg/devices/device_state.go#L5) for that particular device, e.g.
This went out the door with 2.4.2
The emulator seemingly takes these devices as shallow clones of the same device. Effecting change in state on a LED color or Lock state will alter every lock in the wedge/chamber in initial testing with a virtual chamber.
See: https://github.com/vapor-ware/cloud-ops/issues/59 for initial tests results when interacting from the keportal.