Dave's page

Recent Articles:



A Raspberry Pi HTTP REST software stack

This post describes software that can be used to implement HTTP REST applications that can run on the Raspberry Pi under Raspbian Linux (and other Linux variants, too). We also discuss how to install and configure that software, and how to use flask and flask-restful to implement REST API and REST applications.


A gen_statem FSM server with state

This post discusses the implementation of and FSM (finite state machine) in Erlang with the gen_statem module. In this implementation we enable the server/FSM to carry some internal state whose value is different for each of multiple instances of the server process.


Implementing finite state machines with Erlang and gen_statem

This post discusses the implementation of and FSM (finite state machine) in Erlang with the gen_statem module. We emphasize the implementation of the FSM by creating a table of rules that define the transitions (from state to state) of the FSM and then implementing the FSM by translating those rules into code (in this case, Erlang code).