EngorioEngorio.in
Chapter 21

Programming for IoT

5 min read11 sections
In this chapter · 11 sections
  1. Development environments
  2. Arduino C++ essentials
  3. Never block: the millis() pattern
  4. Interrupts
  5. State machines
  6. FreeRTOS on the ESP32
  7. Storing data on the device
  8. Reliable WiFi and MQTT
  9. Over-the-air (OTA) updates
  10. MicroPython in a nutshell
  11. Code organisation habits

Good IoT firmware never freezes: it reads sensors, handles the network and responds to commands at the same time.

Good IoT firmware never freezes: it reads sensors, handles the network and responds to commands at the same time. The secret is to avoid delay(), use millis() timers and state machines, and reconnect automatically when WiFi drops.

Unlock this chapter with any paid project, from ₹109

Buy any paid project on Engorio and every Encyclopedia chapter, the glossary, the calculators and the PDF unlock on your account. Free trial projects don't count.