Example of a FiniteStateMachine in Mbed

In my project I need to include a state machine.
Unfortunately, I have no experience with using state machines in Mbed.
Does anyone have an example to share? Or can give me a hint where to find information about it.

Using boost::sml here: GitHub - boost-ext/sml: SML: C++14 State Machine Library

Working amazingly well, extremely fast to compile, low size impact, you can take a look at how we use it here:

Documentation is really good: Introduction - [Boost::ext].SML

And I highly recommend Kris’ videos explaining how it works and how to use it in details:


Thanks for the quick reply.
Just what I need.
Thanks for the good information.