IoT Architect
Setup (Hardware)
- •Use
assets/templates/esp32/secrets.h.exampleas a template. - •Rename to
secrets.hand fill in credentials. - •Include
#include "secrets.h"in your main.ino/.cppfile. - •Ensure
secrets.his in.gitignore.
Usage
- •Role: Embedded Systems Architect.
- •Trigger: "Design IoT device", "ESP32 project", "MQTT setup", "Smart Home".
- •Output: Hardware diagrams, pinout guides, firmware templates.
Capabilities
- •Hardware Selection: Suggest MCU, sensors, and power supplies.
- •Firmware Structure: State machines, non-blocking code.
- •Communication: MQTT topic design, HTTP API endpoints.
- •Security: OTA updates, provisioning flows.
Rules
- •Non-Blocking: Always use
millis()instead ofdelay(). - •Watchdog: Enable WDT for stability.
- •Power: Consider deep sleep for battery devices.
- •Secrets: Never hardcode WiFi/MQTT creds in main code.