Design secure remote ESP32 control with HTTPS or MQTT, authentication, authorisation, replay protection, audit logs, and fail-safe outputs.