Viva questions for an ESP32 IoT project

For an ESP32 or IoT project, examiners ask how data moves, how reliable it is and how it is secured. Answer from your own design.

Hardware

  • Why the ESP32? Built-in Wi-Fi and Bluetooth, enough pins and memory, low cost. State the limits too, such as 3.3 V logic.
  • Which pins did you use and why? Avoid strapping and flash pins. See the wiring checker and ESP32 pinout.
  • How is it powered? Supply, current peaks and brownout. See ESP32 brownout.

Networking

  • Which protocol did you use and why? HTTP, MQTT or WebSocket. See MQTT on the ESP32.
  • What happens when Wi-Fi drops? Describe reconnect handling. See Wi-Fi keeps disconnecting.
  • How is your data secured? Say what you used: passwords, TLS, access control. State the limits honestly.

Reliability and testing

  • How did you test it? Range, long runs and power cuts, with a log.
  • What was the worst failure? Have one real example and the fix.
  • How would you scale it to many devices? Naming, updates and monitoring.

Free Library, Report template, Viva questions, More viva questions.

Last reviewed: November 2026. Free to copy and adapt for your own college work. Follow your department format first; its rules override this page.

Extra questions to prepare

  • What is the difference between HTTP and MQTT? HTTP is request and response. MQTT uses a broker and publish and subscribe topics, which suits many small messages.
  • What do the MQTT QoS levels mean? QoS 0 is at most once, 1 is at least once and 2 is exactly once.
  • What is a retained message or a last will? A retained message is stored by the broker for new subscribers. A last will is sent by the broker if a device disconnects without saying goodbye.
  • Why does the board reset when the motor starts? A current spike pulls the supply down. Mention decoupling capacitors and a separate supply.
  • How do you save power? Deep sleep, sending less often and turning off the radio between sends.

Show the data path

Be ready to draw the path from sensor to screen: sensor, ADC or digital read, code on the ESP32, Wi-Fi, broker or server, then dashboard. Mark where data could be lost, delayed or tampered with, and say how you handled each. This is a strong way to answer the reliability and security questions together.

Facts to be careful with

  • The ESP32 works at 3.3 V logic. Say how you connected any 5 V parts.
  • ADC2 pins do not work with analogRead while Wi-Fi is on; ADC readings are also not perfectly linear, so calibrate if accuracy matters.
  • If you use a public broker or open Wi-Fi, say so and say what the risk is. Do not claim security you did not implement.

Back up claims with your own tests

Give numbers only from your own logs, such as time to reconnect or the number of messages sent in a run. If you did not test, say it is untested.