The DHCP exchange is rather quick so it does not explain the excessively long connection time, but it still should not happen (updated: the IDF version does not show DHCP requests). I then copied the full wifi part from the IDF project into the Arduino IDE sketch and it ran as slowly a...
const int prisoner_counter_id = 0; // Prisoner state (been with lamp off or not) int prisoner_lookup[100]; // Number of counts by prisoner in charge of counting int prisoner_counter = 0; // State of the lamp int lamp = 0; // Current prisoner in the room int prisoner_room; mems...
My Arduino kit contains a Arduino UNO clone. This was bigger than I wanted so I settled on a cloned Arduino Nano from eBay which was about $10. This had the digital inputs I wanted, more than enough memory to hold the simple sketch I’d write, could be run from a 12V DC plug pac...