sudomesh / disaster-ping-pong

helps locate friendly ssids
1 stars 1 forks source link

Convert to state machine logic #1

Open paidforby opened 7 years ago

paidforby commented 7 years ago

here's an example https://gist.github.com/dinodeck/5fd84bdff8670964c599

paidforby commented 7 years ago

Use proper tail calls maybe. https://www.lua.org/pil/6.3.html Pretty cool, but really just fancy gotos?

paidforby commented 7 years ago

Got simple state machine working on ESP8266 from that first example. https://github.com/gcgallo/disaster-states/blob/master/init.lua