#100 EoN state machine should return to offline when an MQTT error occurs

2.0.0.0: Device
closed
hermsen
None
2021-01-02
2020-12-18
hermsen
No

as there is no way to error out of the two publish states, there is no way to reconnect to an MQTT Server once a connection is lost. => Yes, I have seen this effect during testing too, thanks for reminding me to make this ticket😀

A solution had already been thought off but the current seqnums issue has higher priority.😔

Suggested solution;
After loss of connection, make sure the EoN can return to the offline step.
The trigger to detect this is programmed outside the StateMachine.
It is then forwarded into the state machine in form of an input command to let the EoN StateMachine go-to
The offline state.

The above mechanism will also trigger devices to go to plugged but offline as they monitor the EoN continuously.
Whenever the connection restores the EoN will reconnect and the devices will automatically follow after the connection is restored with no programming required (by design)

Discussion

  • hermsen

    hermsen - 2020-12-18
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -5,6 +5,8 @@
     Suggested solution;
     After loss of connection, make sure the EoN can return to the offline step.
     The trigger to detect this is programmed outside the StateMachine.
    +It is then forwarded into the state machine in form of an input command to let the EoN StateMachine go-to
    +The offline state.
    
    -The above mechanism will also trigger devices to go to plugged but offline.
    +The above mechanism will also trigger devices to go to plugged but offline as they monitor the EoN continuously.
     Whenever the connection restores the EoN will reconnect and the devices will automatically follow after the connection is restored with no programming required (by design)
    
     
  • hermsen

    hermsen - 2020-12-27

    Sounds simple but will probably prove to be difficult as many of the simple sounding problems do

     
  • hermsen

    hermsen - 2021-01-02

    Is implemented in trunk v1.3.3.5

     
  • hermsen

    hermsen - 2021-01-02
    • status: accepted --> closed
     

Log in to post a comment.