Online course · Engineering

Connected IoT with ESP32-C3: Wi-Fi, BLE, MQTT, OTA and Security

Build a cold-chain node that connects, reports, updates and stays secure

Created by TrainSkool Trainer

Connected IoT with ESP32-C3: Wi-Fi, BLE, MQTT, OTA and Security course cover

Coming soon Launch price ₹1,999

This course is not open for enrolment yet.

About this course

For engineers and students who know embedded C and want to build connected devices, from the first Wi-Fi connection to a secure, updatable product. One running example throughout: Kaveri ColdNode, a fictional ESP32-C3 cold-chain temperature node for milk chilling centres near Erode and a pharma cold room in Coimbatore. You will bring up Wi-Fi with backoff, keep UTC time with SNTP, provision credentials over BLE, call REST APIs with validated JSON, survive outages with store-and-forward, use MQTT with QoS, retained status, last will and commands, expose a standard BLE GATT temperature service, update firmware over the air with rollback and staged rollouts, and secure the device with mutual TLS, secure boot and flash encryption concepts, factory provisioning and DPDP-aware data minimisation. Every lesson has a lab on a real ESP32-C3 with wiring tables, expected serial output and a PASS line for automated board testing; all board code was compiled against ESP-IDF v6.1. Prerequisite: Embedded C (E2) or equivalent. Included: 29 text lessons with slides and quick checks, 27 auto-checked Python exercises, seven chapter projects, chapter quizzes, a capstone with a 100-point rubric, a final exam and a certificate of completion. Lessons are text and slides; trainer videos are coming later. Not affiliated with or endorsed by Raspberry Pi Ltd, Espressif, STMicroelectronics or Arm. What you will be able to do: - You will be able to bring up Wi-Fi on the ESP32-C3 with event handling, capped exponential backoff and SNTP time - You will be able to provision devices over BLE and manage identity, settings and factory reset in NVS - You will be able to call REST APIs, validate JSON and keep data through outages with a store-and-forward queue - You will be able to design MQTT topics, QoS, retained status, last will and acknowledged commands - You will be able to build a BLE GATT temperature service with notifications using NimBLE - You will be able to ship OTA updates with two-slot partitions, rollback and manifest-driven staged rollouts - You will be able to secure a device with mutual TLS, per-device credentials and a production locking plan - You will be able to integrate and prove a cold-chain logger with a hardware-in-the-loop test plan

What you'll learn

  • Bring up Wi-Fi on the ESP32-C3 with event handling, capped exponential backoff and SNTP time
  • Provision devices over BLE and manage identity, settings and factory reset in NVS
  • Call REST APIs, validate JSON and keep data through outages with a store-and-forward queue
  • Design MQTT topics, QoS, retained status, last will and acknowledged commands
  • Build a BLE GATT temperature service with notifications using NimBLE
  • Ship OTA updates with two-slot partitions, rollback and manifest-driven staged rollouts
  • Secure a device with mutual TLS, per-device credentials and a production locking plan
  • Integrate and prove a cold-chain logger with a hardware-in-the-loop test plan

Course content

Chapter 1 · Module 1: Networking on Microcontrollers

  • Code lab: How an MCU Talks to a Network: lwIP, Sockets and the ESP-IDF Event LoopA temperature sensor that only prints to a serial cable is a lab toy. , DNS fails, the broker is down for maintenance, and the device has 400 KB of RAM to deal with all of it.18 topics · 28 min
  • Code lab: Wi-Fi Station Mode: Connect, Reconnect and Exponential BackoffSelvam installed the first three ColdNodes at the Erode chilling centre on a Monday.18 topics · 28 min
  • Code lab: Time on a Device: SNTP, UTC Timestamps and IST in LogsA cold-chain record is only useful if you can trust when each reading was taken.18 topics · 26 min
  • Code lab: The Same Job on Pico 2 W: MicroPython Networking Side by SideKaveri Embedded Labs does not build every product on the ESP32-C3.24 topics · 26 min

Chapter 2 · Module 2: Wi-Fi Provisioning and Device Identity

  • Code lab: Storing Configuration in NVSIn Module 1 the Wi-Fi name and password came from menuconfig and were compiled into the firmware.18 topics · 26 min
  • Code lab: Provisioning Over BLE with network_provisioningSelvam is standing next to a milk tank in a chilling centre near Gobichettipalayam with a ColdNode in one hand and his phone in the other.19 topics · 30 min
  • Code lab: Device Identity, Factory Reset and the Field Technician FlowThree months into the pilot, the cooperative replaces the router at its Perundurai centre.25 topics · 26 min

Chapter 3 · Module 3: HTTP, REST and JSON on the Device

  • Code lab: HTTP Client Basics with esp_http_clientThe pharma distributor in Coimbatore does not want MQTT.19 topics · 27 min
  • Code lab: JSON Payloads with cJSON: Build, Parse, ValidateIn the second week of the pharma pilot, a dashboard developer changed the configuration endpoint to send "interval_s": "30" (a string) instead of 30 (a number).18 topics · 27 min
  • Code lab: A Tiny Local Web Server for ConfigurationAt the pharma cold room, the distributor's maintenance engineer wants to check a ColdNode without the cloud: is it alive, which firmware is it running, what interval is it using?19 topics · 26 min
  • Code lab: Retries, Timeouts and an Offline BufferDuring the monsoon, the fibre link to one Erode chilling centre was cut for nine hours.26 topics · 28 min

Chapter 4 · Module 4: MQTT for Devices

  • Code lab: MQTT Concepts and the Packet on the WireModule 3 made ColdNode talk HTTP, and it works, but look at what the uploader had to build by hand: a queue, retries, backoff, duplicate detection, a polling loop for configuration.20 topics · 28 min
  • Code lab: Connecting and Publishing with esp-mqtt1 proved that MQTT is just bytes on a socket.21 topics · 28 min
  • Code lab: QoS, Retained Messages and Last WillTwo complaints arrived from the Erode pilot in the same week. " The first is a missing retained message; the second is a missing last will.20 topics · 28 min
  • Code lab: Topic Design, Commands and AcknowledgementsBy the end of the pilot, Bhavani Dairy wants more than readings.26 topics · 27 min

Chapter 5 · Module 5: Bluetooth Low Energy

  • Code lab: BLE Fundamentals: Advertising, GAP and ConnectionsNot every place a ColdNode goes has Wi-Fi.20 topics · 27 min
  • Code lab: A GATT Temperature Service with NimBLEAdvertising tells the tanker driver's phone that a ColdNode is nearby.20 topics · 28 min
  • Code lab: Notifications, Phone Testing and Power Trade-offsReading the temperature on demand is fine for a quick check, but the tanker driver wants the phone to update by itself while it sits on the dashboard, and to beep if the milk warms.26 topics · 27 min

Chapter 6 · Module 6: Over-the-Air Updates

  • Code lab: Partition Tables and the Two-Slot OTA LayoutBy the end of the pilot there are 40 ColdNodes at eleven Bhavani Dairy centres and in the Coimbatore cold room.19 topics · 27 min
  • Code lab: Downloading Firmware with esp_https_otaWith two slots in place, ColdNode needs a way to fetch a new image and write it safely into the passive slot.22 topics · 28 min
  • Code lab: Rollback, Self-Tests and Version Checks2 guarantees the new firmware is intact. It cannot guarantee the new firmware works.20 topics · 28 min
  • Code lab: Staged Rollouts and an OTA Manifest10. Kaveri now has 40 nodes, and a year from now it hopes to have 4,000 across several customers.26 topics · 28 min

Chapter 7 · Module 7: Security for Connected Devices

  • Code lab: TLS on the Device: Certificates and Mutual TLS to the BrokerUntil now ColdNode's MQTT traffic has crossed the network in plain text.20 topics · 29 min
  • Code lab: Secure Boot and Flash EncryptionTLS protects ColdNode's traffic. It does nothing for the device itself.19 topics · 28 min
  • Code lab: Per-Device Credentials and Secure Provisioning at the Factory1 gave each ColdNode its own certificate and private key.20 topics · 28 min
  • Code lab: Device Data and the DPDP Act: Collect Less, Keep It SafeA milk temperature is not personal data.25 topics · 26 min

Chapter 8 · Module 8: Capstone - Cold-Chain Temperature Logger with Alerts

  • Reading: Capstone Brief and RequirementsBhavani Dairy Producers' Cooperative has decided to move from the pilot to a product.12 topics · 35 min
  • Code lab: Build Guide: Integrating Sensor, MQTT, Alerts and OTAEvery module so far worked on its own.20 topics · 45 min
  • Assignment: Deliverables, Test Plan and RubricSubmit one folder (or repository) containing:7 topics · 40 min

Assessments and certificate

  • Module 1 quiz: Networking on Microcontrollers7 questions · 15 min · pass mark 70%
  • Module 2 quiz: Wi-Fi Provisioning and Device Identity7 questions · 15 min · pass mark 70%
  • Module 3 quiz: HTTP, REST and JSON on the Device7 questions · 15 min · pass mark 70%
  • Module 4 quiz: MQTT for Devices7 questions · 15 min · pass mark 70%
  • Module 5 quiz: Bluetooth Low Energy7 questions · 15 min · pass mark 70%
  • Module 6 quiz: Over-the-Air Updates7 questions · 15 min · pass mark 70%
  • Module 7 quiz: Security for Connected Devices7 questions · 15 min · pass mark 70%
  • Module 8 quiz: Capstone - Cold-Chain Temperature Logger with Alerts7 questions · 15 min · pass mark 70%
  • Connected IoT with ESP32-C3: Wi-Fi, BLE, MQTT, OTA and Security — final assessment20 questions · 40 min · pass mark 70%

Related courses

Frequently asked questions

Can I get a refund for Connected IoT with ESP32-C3: Wi-Fi, BLE, MQTT, OTA and Security?

Yes. You can request a full refund within 7 days of purchase, provided you have completed no more than 25% of the lessons, not started the final exam and not been issued a certificate. Pre-orders of a course that has not launched yet can be refunded in full any time before launch. Email refunds@trainskool.com with your order reference; approved refunds go back to your original payment method.

How long do I have access to the course?

Lifetime access. A one-time payment of ₹1,999 keeps the course in your TrainSkool learning dashboard, on the web and in the TrainSkool apps, with no subscription to cancel.

Do I get a certificate?

Yes. TrainSkool issues a certificate when you meet the course requirements, including passing its 9 graded assessments. Every certificate has a public verification link that employers can check.

Are there any prerequisites?

No other course is required. The course level is intermediate, so check the curriculum to confirm it matches your experience.

How is the course delivered?

Online and self-paced: 8 modules and 29 lessons, about 13h 53m of study, with graded assessments. Learn in your browser or the TrainSkool Android and Windows apps.