Finit State-Machine with Berry #22705
Replies: 2 comments
-
This destructor would probably never be called by the Berry GC, unless the driver has previously already been removed, because the tasmota object holds a reference on the object until it is removed.
A "week reference" would make sense here. Does anybody know how week references could can be realized with Berry ? |
Beta Was this translation helpful? Give feedback.
-
There is no weak reference in Berry. Indeed the destructor above will never be called if it's still registered as a driver in Tasmota. The instance needs to call Be very careful, any exception or anything going wrong in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In one of my projects the processes became very complex, so I decided to use a finit state machine.
The following example application shows the states and transitions.
This graphic was also created by Berry. It shows the current state of the state machine. (Mermaid renders the graphic)
The source code and the example application can be found in the Git repo
Beta Was this translation helpful? Give feedback.
All reactions