Skip to content
Snippets Groups Projects
Commit 97987924 authored by Reinder Kraaij's avatar Reinder Kraaij :eye:
Browse files

multiple. iot's ms!

parent d8c0e407
No related branches found
No related tags found
1 merge request!1072Resolve L2SS-2050 "Add station state transition interface"
...@@ -83,7 +83,7 @@ class Station(station_pb2_grpc.StationServicer): ...@@ -83,7 +83,7 @@ class Station(station_pb2_grpc.StationServicer):
since hibernate is not a valid predecessor state. since hibernate is not a valid predecessor state.
""" """
station_manager.set_timeout_millis( station_manager.set_timeout_millis(
station_manager.hibernate_transition_timeout_RW station_manager.hibernate_transition_timeout_RW * 1000.0
) )
station_manager.station_hibernate() station_manager.station_hibernate()
while station_manager.station_state_transitioning_R: while station_manager.station_state_transitioning_R:
...@@ -107,17 +107,17 @@ class Station(station_pb2_grpc.StationServicer): ...@@ -107,17 +107,17 @@ class Station(station_pb2_grpc.StationServicer):
station_manager.station_off() station_manager.station_off()
case station_pb2.Station_State.HIBERNATE: case station_pb2.Station_State.HIBERNATE:
station_manager.set_timeout_millis( station_manager.set_timeout_millis(
station_manager.hibernate_transition_timeout_RW station_manager.hibernate_transition_timeout_RW * 1000.0
) )
station_manager.station_hibernate() station_manager.station_hibernate()
case station_pb2.Station_State.STANDBY: case station_pb2.Station_State.STANDBY:
station_manager.set_timeout_millis( station_manager.set_timeout_millis(
station_manager.standby_transition_timeout_RW station_manager.standby_transition_timeout_RW * 1000.0
) )
station_manager.station_standby() station_manager.station_standby()
case station_pb2.Station_State.ON: case station_pb2.Station_State.ON:
station_manager.set_timeout_millis( station_manager.set_timeout_millis(
station_manager.on_transition_timeout_RW station_manager.on_transition_timeout_RW * 1000.0
) )
station_manager.station_on() station_manager.station_on()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment