Skip to main content

AirNgin ESP32 sample project

The AirNgin ESP32 sample is a reference for understanding the basic PlatformIO layout and MQTT integration flow. It is not a requirement to copy the sample project verbatim.

platformio.ini

The PlatformIO configuration selects the board/framework and declares the libraries needed by the sample. When adapting it to your product, keep your real board target, flash size, partition layout, and hardware configuration authoritative.

Partition table

If the sample contains a custom partition table, use it only when it matches the flash layout required by your target. Do not replace a known-good production partition layout just because the sample uses a different one.

src/

The source tree demonstrates the AirNgin connection flow around the application code:

  • network initialization;
  • provisioning/credential persistence;
  • MQTT connection and reconnect;
  • subscription restore;
  • publish/receive routing;
  • local product behavior continuing independently of cloud availability.

The current canonical topic/security/provisioning documentation takes precedence over older code comments or legacy sample behavior.

Useful project screenshots are included with this documentation for the original PlatformIO walkthrough.

Open the public AirNgin MQTT ESP32 sample