I'm looking for an example of a simple FSM implemented in Erlang using the gen_fsm from OTP.
I found this tutorial really helpful -
http://spawnlink.com/articles/an-introduction-to-gen_fsm-erlybanks-atm/index.html
You can also refer to the official erlang documentation.
http://www.erlang.org/doc/design_principles/fsm.html
The locked door example reported in the link is quite easy to understand
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With