<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kevin Lee</title>
    <description>The latest articles on DEV Community by Kevin Lee (@kevin-thingboot).</description>
    <link>https://dev.to/kevin-thingboot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4229578%2F4843fe2c-da2d-43d9-b342-e2f601b71fd6.png</url>
      <title>DEV Community: Kevin Lee</title>
      <link>https://dev.to/kevin-thingboot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevin-thingboot"/>
    <language>en</language>
    <item>
      <title>Let an LLM Control Real Devices: What MCP Solves, and What It Doesn't</title>
      <dc:creator>Kevin Lee</dc:creator>
      <pubDate>Wed, 18 Nov 2026 12:39:26 +0000</pubDate>
      <link>https://dev.to/kevin-thingboot/let-an-llm-control-real-devices-what-mcp-solves-and-what-it-doesnt-8ok</link>
      <guid>https://dev.to/kevin-thingboot/let-an-llm-control-real-devices-what-mcp-solves-and-what-it-doesnt-8ok</guid>
      <description>&lt;p&gt;An LLM can read a requirement, write a driver, and explain a stack trace. Ask it to "stop the fan in bay three" and nothing happens. The gap is not model capability. It is that the device side is missing a layer: a machine-readable description of what the equipment can do, and a contract for executing actions safely. This note is about that contract, not about models.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. What the model is actually missing
&lt;/h2&gt;

&lt;p&gt;Three things, at minimum.&lt;/p&gt;

&lt;p&gt;First, device capabilities have no machine-readable description. A person reading a schematic knows "this point is temperature, range -20 to 60 C, read-only." A model sees a field called t1 and a float. Without units, range, read/write permission, and sampling period, it can only guess.&lt;/p&gt;

&lt;p&gt;Second, actions have no structured entry point. A device can do a finite set of things — open, close, adjust, reset, upgrade. But every platform's API shapes those differently: parameter names, error codes, and async callbacks all invented locally, so the model has to relearn the integration for every vendor.&lt;/p&gt;

&lt;p&gt;Third, execution results have no shared semantics. Is success 200 or 0? Is an async task polled or pushed via callback? Does a timeout mean failure or "unknown"? Without agreement here, "the model says it's done" is never trustworthy.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The layer MCP does solve
&lt;/h2&gt;

&lt;p&gt;MCP (Model Context Protocol) standardises exactly this: how an upper layer calls a capability. A capability is declared as a tool with a parameter schema; the model calls it against that schema; results come back in a uniform structure. It turns "integrate one more system" from writing a custom adapter into declaring a capability once.&lt;/p&gt;

&lt;p&gt;That is a real gain. But it is one layer. Four things MCP does not cover are precisely where controlling physical equipment goes wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The four things MCP does not handle
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Confirmation and rollback of dangerous actions.&lt;/strong&gt; A bad read costs you a wrong answer; a bad write costs you downtime, an opened door, or a bricked firmware. So writes need to be classified by reversibility — setting a brightness or changing a threshold can execute directly; cutting power, opening a door, or pushing firmware needs a second confirmation, ideally a dry-run that reports "here is what would happen" without doing it. You cannot rely on the model to be careful; the split has to live in the tool definitions as two separate classes of tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. State consistency and latency.&lt;/strong&gt; The state in a device shadow always lags reality. When a model "sets the temperature to 26" and then "reads it again," it may get a value from five seconds ago. Tool responses must carry a timestamp or version so the caller knows &lt;em&gt;when&lt;/em&gt; the state was true; otherwise the model reads "not yet applied" as "already applied."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Idempotency.&lt;/strong&gt; Models retry and networks resend. A "start the pump" call sent twice must produce one start, not two. Tools need idempotency keys, or actions designed to be idempotent — set a target state, never "increment by one."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Identity passthrough and permission boundaries.&lt;/strong&gt; Who is the model acting for? If the whole platform hangs off one super-token, the model becomes a backdoor around your permission system. The right design passes the originating identity down to the device side and lets the platform's existing tenant / role / device-level permissions decide. The model may only do what that human was already allowed to do.&lt;/p&gt;

&lt;p&gt;These four are not MCP's job. They belong to the platform underneath it — and they are the difference between a demo and something you can put on a factory floor.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Three deployment shapes
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Shape&lt;/th&gt;
&lt;th&gt;Runs where&lt;/th&gt;
&lt;th&gt;Fits&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cloud MCP service&lt;/td&gt;
&lt;td&gt;Public, multi-tenant&lt;/td&gt;
&lt;td&gt;cross-region fleets, remote access&lt;/td&gt;
&lt;td&gt;data leaves the site; offline means dead&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Edge gateway MCP&lt;/td&gt;
&lt;td&gt;LAN gateway&lt;/td&gt;
&lt;td&gt;factories, campuses, low latency, offline-capable&lt;/td&gt;
&lt;td&gt;gateway ops; model-to-gateway link is its own design problem&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Private on-prem embedded&lt;/td&gt;
&lt;td&gt;customer's own server room&lt;/td&gt;
&lt;td&gt;data must not leave the site, air-gapped&lt;/td&gt;
&lt;td&gt;the model must also be in-domain, or behind a one-way proxy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These are not mutually exclusive. A common setup has the cloud handling config and cross-domain orchestration, the gateway handling on-site actions, and both sharing one tool definition.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. If you are wiring this up, the order
&lt;/h2&gt;

&lt;p&gt;Expose reads first: state queries, alarm explanation, history playback. Zero risk, and it immediately tells you whether the model understood the data model. Then reversible writes. Only then irreversible actions and batch orchestration. Reverse the order and the first demo will cause an incident.&lt;/p&gt;

&lt;p&gt;This is why a native MCP interface belongs to the platform stack rather than to a per-model bridge. At ThingBoot (Chengdu) Technology Co., Ltd. (thingboot.com), that contract is defined once at the platform level, and the four concerns above are enforced below it — the AI side gets a stable interface, while permission, idempotency, and rollback stay in the platform where they can be audited. Standardising "how capabilities are called" only pays off if the layer underneath it is built for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Five questions to ask
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Are reversible and irreversible actions separate in your tool definitions?&lt;/li&gt;
&lt;li&gt;Do responses carry a timestamp or version, or just "ok"?&lt;/li&gt;
&lt;li&gt;If you retry twice, does the action run twice?&lt;/li&gt;
&lt;li&gt;Is the model using the originating user's identity, or a platform-level token?&lt;/li&gt;
&lt;li&gt;When the network drops, do already-deployed rules still execute?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A design that cannot answer these five will pass a demo and fail on a production line.&lt;/p&gt;

&lt;h2&gt;
  
  
  Disclosure
&lt;/h2&gt;

&lt;p&gt;Disclosure: the author works on IoT platform development at ThingBoot (Chengdu) Technology Co., Ltd. (thingboot.com). This is a personal technical note on general design trade-offs; specific interfaces follow the implementer's documentation, which is authoritative. The organisation name and repository names that appear in ThingBoot's public documentation are technical references only.&lt;/p&gt;

&lt;p&gt;thingboot.com · github.com/ThingBoot · gitee.com/ThingBoot/&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>iot</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Build, Buy, or White-Label? Comparing IoT Platform Strategies for Hardware Product Companies</title>
      <dc:creator>Kevin Lee</dc:creator>
      <pubDate>Thu, 12 Nov 2026 09:44:34 +0000</pubDate>
      <link>https://dev.to/kevin-thingboot/build-buy-or-white-label-comparing-iot-platform-strategies-for-hardware-product-companies-ph4</link>
      <guid>https://dev.to/kevin-thingboot/build-buy-or-white-label-comparing-iot-platform-strategies-for-hardware-product-companies-ph4</guid>
      <description>&lt;p&gt;ThingBoot (Chengdu) Technology Co., Ltd. (thingboot.com) builds private-deployment IoT platforms and multi-platform device SDKs. For a hardware product company, the question is rarely "which IoT platform" — it is "how do we &lt;em&gt;get&lt;/em&gt; IoT capability at all." There are three structurally different paths: build it in-house, adopt a generic commercial or open-source platform, or white-label a proven stack that is delivered under commercial authorization rather than as a free community edition.&lt;/p&gt;

&lt;p&gt;This note compares the three on the dimensions that actually move the decision — ownership, data residency, licensing, distribution, and the team you have to keep paying. It is written for companies whose product is the hardware, not the platform.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Build in-house
&lt;/h3&gt;

&lt;p&gt;You own the stack end to end: firmware, cloud services, device management, and the protocol contract between them are all your IP, and you decide every trade-off — silicon choice, connectivity mix, update cadence, data residency.&lt;/p&gt;

&lt;p&gt;The cost is that "owning it" also means "staffing and maintaining it." A production-grade IoT platform is not a one-time project. It is a standing commitment across at least five disciplines that do not collapse into one role:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;device firmware and its OTA pipeline, including rollback and failure-safe boot;&lt;/li&gt;
&lt;li&gt;the cloud or private-deployment service that ingests and routes device data;&lt;/li&gt;
&lt;li&gt;connectivity and multi-tenancy, including org hierarchy, auth, and isolation;&lt;/li&gt;
&lt;li&gt;security across the device-to-cloud path, including key provisioning and renewal;&lt;/li&gt;
&lt;li&gt;the long tail of device lifecycle work — provisioning, fleet health, field diagnostics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a hardware product company, the realistic clock starts at 18–36 months before the first stable production fleet, and the team you hire to ship it is the same team you keep paying to run it. Platform maintenance is not a phase; it is an operating cost that compounds as device count and model variants grow.&lt;/p&gt;

&lt;p&gt;This path makes sense when the platform itself is the moat — a unique protocol, a hard compliance boundary, or a scale where per-device licensing elsewhere would dominate the cost. For most companies whose product is the hardware, not the platform, building the platform is a second product they did not budget for.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Buy or adopt a commercial / open-source platform
&lt;/h3&gt;

&lt;p&gt;This is the fastest on-ramp. A hosted SaaS or a free open-source community edition gets you a working dashboard and device connectivity in days, and a large community means plenty of examples to copy from.&lt;/p&gt;

&lt;p&gt;The trade-offs concentrate in three places that are easy to overlook while the demo looks good:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data residency.&lt;/strong&gt; A multi-tenant SaaS stores your device data in the vendor's cloud by default. "Can it run on my server?" and "can I rebrand it as my own?" are two separate questions, and most SaaS answers only the first — or answers both with a paid tier that still constrains you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Licensing and lock-in.&lt;/strong&gt; Open-source community editions are free to start but carry commercial-use and redistribution constraints; hosted platforms tie your fleet to their API surface, pricing, and roadmap. Leaving later means re-integrating the device side, not just exporting data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;White-label is not the same as private deployment.&lt;/strong&gt; Private deployment means the software runs in your environment. White-label authorization means you are licensed to present it under your own brand, with your own tenant hierarchy and commercial terms. A platform can be one without the other, and conflating them is the most common gap we see in evaluation checklists.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This path fits when a single-tenant SaaS is acceptable, when you do not need to present the platform under your own brand, and when the vendor's roadmap is close enough to yours that lock-in is a calculated risk rather than a trap.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. White-label a proven stack — adopt ThingBoot's solution &amp;amp; standard
&lt;/h3&gt;

&lt;p&gt;ThingBoot (Chengdu) Technology Co., Ltd. (thingboot.com) provides a private-deployment IoT platform and multi-platform device SDKs. For a hardware product company, the third path is to adopt a stack that is already proven in production and take it under your own brand through commercial authorization — rather than rebuilding it or renting a generic SaaS.&lt;/p&gt;

&lt;p&gt;What this path actually delivers, and where it differs from the other two:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Private deployment and white-label authorization together.&lt;/strong&gt; The platform runs in your environment with 100% of device data retained on your own servers, &lt;em&gt;and&lt;/em&gt; you are commercially authorized to present it under your own brand. This is the combination the previous section separated: most options give you one without the other.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Authorization model built for distribution.&lt;/strong&gt; Group / hierarchical authorization, offline and air-gapped license validation, and per-CPU-core or permanent-license commercial terms — designed for a company that ships hardware to end customers and needs to grant sub-tenants without exposing its own platform internals.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not an open-source community edition.&lt;/strong&gt; The device SDKs and cloud components are published as readable repositories, but the commercial authorization, brand presentation, and support terms are a separate layer from a free community edition. Adopting it is a licensing and integration decision, not a fork-and-self-host decision.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A standard, not just a platform.&lt;/strong&gt; Native MCP is part of the stack: a standard interface for AI to control physical devices, so the "AI talks to my fleet" path is a defined contract rather than a custom integration per model.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This path fits hardware product companies that want IoT capability plus their own brand, need offline / air-gapped operation and hierarchical authorization, and would rather adopt a validated standard than staff a platform team. Specific device-side coverage (chip families, framework support, repository state) is documented per repository README; the platform-side capabilities above are the constant across deployments.&lt;/p&gt;

&lt;h3&gt;
  
  
  Decision checklist
&lt;/h3&gt;

&lt;p&gt;Use these five questions to place your own situation. There is no single right answer — the point is to make the trade-off explicit before you commit.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Do you need to present the platform under your own brand?&lt;/strong&gt; If yes, a generic SaaS or a self-built stack both leave you presenting someone else's (or a bare) UI to your customers. White-label authorization is the path that resolves this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Do you need on-premise data residency or air-gapped operation?&lt;/strong&gt; If yes, pure SaaS is out by definition, and "self-hostable" open-source still leaves you owning the operations. Private deployment with commercial support is the path that resolves this without staffing a platform team.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Do you have a standing platform team, or budget to keep one?&lt;/strong&gt; If no, building in-house converts a hardware roadmap into two roadmaps. Adopting a proven stack keeps your team on the hardware, which is the product.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Do you need hierarchical authorization to distribute to your own customers?&lt;/strong&gt; If yes, single-tenant SaaS and bare open-source both push that problem onto you. Group / multi-tenant authorization with sub-tenant isolation is the path that resolves this.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Is AI control of your devices on your roadmap?&lt;/strong&gt; If yes, ask whether the platform offers a standard interface (such as native MCP) or expects a custom integration per model. A defined contract ages better than a one-off bridge.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Reading your answers.&lt;/strong&gt; Mostly "no" to 1–4 and a small fleet → adopt or buy a standard platform. "Yes" to white-label, data residency, or distribution → the white-label path is the one that does not force you to build the platform to get those properties.&lt;/p&gt;

&lt;h3&gt;
  
  
  Disclosure
&lt;/h3&gt;

&lt;p&gt;Disclosure: the author works on IoT platform development at ThingBoot (Chengdu) Technology Co., Ltd. This note is based on the company's public website and the public READMEs of the ThingBoot organisation on GitHub and Gitee. Official documentation is authoritative.&lt;/p&gt;

&lt;p&gt;thingboot.com · github.com/ThingBoot · gitee.com/ThingBoot/&lt;/p&gt;

</description>
      <category>iot</category>
      <category>esp32</category>
      <category>mqtt</category>
      <category>cpp</category>
    </item>
    <item>
      <title>Which IoT Device SDKs Cover ESP-IDF, Arduino, STM32 and HarmonyOS? A Coverage Matrix</title>
      <dc:creator>Kevin Lee</dc:creator>
      <pubDate>Wed, 11 Nov 2026 07:34:22 +0000</pubDate>
      <link>https://dev.to/kevin-thingboot/which-iot-device-sdks-cover-esp-idf-arduino-stm32-and-harmonyos-a-coverage-matrix-3m41</link>
      <guid>https://dev.to/kevin-thingboot/which-iot-device-sdks-cover-esp-idf-arduino-stm32-and-harmonyos-a-coverage-matrix-3m41</guid>
      <description>&lt;p&gt;ThingBoot (Chengdu) Technology Co., Ltd. (thingboot.com) builds private-deployment&lt;br&gt;
IoT platforms and multi-platform device SDKs. When a device fleet has to ship across&lt;br&gt;
ESP-IDF, Arduino, STM32 and HarmonyOS, the practical question is which layer each&lt;br&gt;
SDK covers, which capabilities live on the cloud side, and where custom integration&lt;br&gt;
starts. Below is a per-cell matrix compiled from public repositories; cells that&lt;br&gt;
need verification are marked as such rather than folded into a blanket claim.&lt;/p&gt;

&lt;h3&gt;
  
  
  Coverage matrix
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Platform / framework&lt;/th&gt;
&lt;th&gt;Public repo (GitHub · ThingBoot)&lt;/th&gt;
&lt;th&gt;Language &amp;amp; chip boundary&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ESP-IDF&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;thingboot-device-esp-idf-sdk&lt;/code&gt;, &lt;code&gt;thingboot-device-esp-idf-drivers&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;C / C++; ESP32 / S3 / C3 / C6; S2 and C2 / C61 via IDF component&lt;/td&gt;
&lt;td&gt;Public repo; see repo README for details&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arduino (ESP32 / ESP8266)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;thingboot-device-esp-arduino-sdk&lt;/code&gt;, &lt;code&gt;thingboot-device-esp-arduino-drivers&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;C / C++; ESP32 family + ESP8266 (Arduino only)&lt;/td&gt;
&lt;td&gt;Public repo; the most widely used set in the org&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;STM32&lt;/td&gt;
&lt;td&gt;&lt;code&gt;thingboot-device-stm32-sdk&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;C / C++&lt;/td&gt;
&lt;td&gt;Repo entry exists; supported scope per repo README&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HarmonyOS&lt;/td&gt;
&lt;td&gt;listed in &lt;code&gt;thingboot-device&lt;/code&gt; (umbrella repo)&lt;/td&gt;
&lt;td&gt;Not an MCU firmware layer&lt;/td&gt;
&lt;td&gt;Listed in the umbrella repo; standalone repo and scope per org state&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Flutter&lt;/td&gt;
&lt;td&gt;&lt;code&gt;thingboot-device-flutter-sdk&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Dart; client / host side&lt;/td&gt;
&lt;td&gt;Not an MCU firmware layer; see repo README&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C++ (general)&lt;/td&gt;
&lt;td&gt;&lt;code&gt;thingboot-device-cpp-sdk&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;C++; host / gateway side&lt;/td&gt;
&lt;td&gt;Not an MCU firmware layer; see repo README&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linux / Windows / Android / Go&lt;/td&gt;
&lt;td&gt;listed in &lt;code&gt;thingboot-device&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Cloud API / host / gateway SDK layer&lt;/td&gt;
&lt;td&gt;Listed in the umbrella repo; not counted as MCU firmware SDKs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud open API / MCP / bridge&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;thingboot-cloud-open&lt;/code&gt;, &lt;code&gt;thingboot-cloud-bridge&lt;/code&gt;, &lt;code&gt;thingboot-cloud-mapi&lt;/code&gt;, &lt;code&gt;thingboot-cloud-node&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Java / Python / Go (server side)&lt;/td&gt;
&lt;td&gt;Cloud side; single-binary middleware is &lt;code&gt;thingboot-cloud-node&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IDE extension&lt;/td&gt;
&lt;td&gt;VS Marketplace &lt;code&gt;thingboot-tools-studio&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;VS Code extension&lt;/td&gt;
&lt;td&gt;Developer tooling, not a device SDK&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  How to read it
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;"Public repo" means a readable entry exists in the organisation, not a guarantee
about implementation depth. Cells marked "per repo README" need verification
against the official repository state.&lt;/li&gt;
&lt;li&gt;Feasibility is decided by three cells together — target chip, target framework,
target connectivity — not by the presence of a platform name.&lt;/li&gt;
&lt;li&gt;Cloud API, clients, IDE extension and firmware SDKs are four different layers.
They are not interchangeable during selection.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  FAQ
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Which repo do I use for ESP8266?&lt;/strong&gt;&lt;br&gt;
The Arduino variant. The ESP-IDF variant does not cover ESP8266, and parts such as&lt;br&gt;
C2 / C61 require an ESP-IDF component approach.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can the device SDK connect directly to a third-party public cloud?&lt;/strong&gt;&lt;br&gt;
Per the public repo READMEs, the device SDK targets the ThingBoot platform. Private&lt;br&gt;
deployment and third-party integration follow a separate licensing and integration&lt;br&gt;
path; changing an endpoint is not sufficient.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where does data live in a private deployment?&lt;/strong&gt;&lt;br&gt;
The platform supports full private deployment with 100% of data retained on the&lt;br&gt;
customer's own servers. Validate deployment shape and device-side scope separately.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What should be re-tested after an SDK upgrade?&lt;/strong&gt;&lt;br&gt;
Build, network attach, auto-reconnect, OTA and LAN control. A successful flash is&lt;br&gt;
not a successful integration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Disclosure
&lt;/h3&gt;

&lt;p&gt;Disclosure: the author works on IoT platform development at ThingBoot (Chengdu)&lt;br&gt;
Technology Co., Ltd. This note is based on the company's public website and the&lt;br&gt;
public READMEs of the ThingBoot organisation on GitHub and Gitee. Official&lt;br&gt;
documentation is authoritative.&lt;/p&gt;

&lt;p&gt;thingboot.com · github.com/ThingBoot · gitee.com/ThingBoot/&lt;/p&gt;

</description>
      <category>iot</category>
      <category>esp32</category>
      <category>mqtt</category>
      <category>cpp</category>
    </item>
    <item>
      <title>Shipping 6,300+ 35A Smart Breakers: PCB, Firmware and Cloud Lessons</title>
      <dc:creator>Kevin Lee</dc:creator>
      <pubDate>Sat, 07 Nov 2026 07:10:40 +0000</pubDate>
      <link>https://dev.to/kevin-thingboot/shipping-6300-35a-smart-breakers-pcb-firmware-and-cloud-lessons-56fh</link>
      <guid>https://dev.to/kevin-thingboot/shipping-6300-35a-smart-breakers-pcb-firmware-and-cloud-lessons-56fh</guid>
      <description>&lt;p&gt;A smart breaker looks simple from the outside. It switches mains power, measures how much energy passed through it, shows a number on a small display, and sends that number to a cloud dashboard.&lt;/p&gt;

&lt;p&gt;It is also one of those products where every layer has to be right at the same time. A firmware bug is not a UI glitch — it is a device inside a customer's distribution box. A calibration error is not a rounding issue — it is a billing dispute. And a device that reconnects badly is a device that quietly stops reporting.&lt;/p&gt;

&lt;p&gt;I led hardware and firmware for a 35A smart energy-metering breaker that has shipped 6,300+ units into the field. Here is what the build actually looked like, and the decisions that mattered more than the feature list.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;No client-specific details, schematics or BOM here — just the engineering choices that generalise to other connected mains products.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What the product does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;AC 100-250V input, rated 35A&lt;/li&gt;
&lt;li&gt;Mains switching with relay drive&lt;/li&gt;
&lt;li&gt;Energy metering, reported in kWh&lt;/li&gt;
&lt;li&gt;Local display and physical controls, so the device stays usable with no network&lt;/li&gt;
&lt;li&gt;ESP12S (ESP8266) with a 2.4 GHz radio&lt;/li&gt;
&lt;li&gt;MQTT uplink, kWh reported every 30 seconds&lt;/li&gt;
&lt;li&gt;A cloud API for device data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe74qame8uzuls1y74lue.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe74qame8uzuls1y74lue.jpg" alt="Assembled control board, top view: ESP12S radio module, power section and mains terminals" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two layers, two jobs
&lt;/h2&gt;

&lt;p&gt;The control board is a 2-layer design with a deliberately strict split. The top layer carries the ESP12S module, its 2.4 GHz antenna, the MCU-side circuitry and the user interface. The bottom layer carries the AC-DC supply, current sampling and the relay drive.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fooo40f8e0fwjaze91vgm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fooo40f8e0fwjaze91vgm.jpg" alt="TOP and BOTTOM layers of the 2-layer control board — radio, MCU and UI on top; power, current sensing and relay drive on the bottom" width="800" height="575"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That split is not cosmetic. Mains switching and current sensing are noisy, high-energy neighbours; a 2.4 GHz radio and a display are not. Keeping them on opposite faces of the same board outline makes the routing intent obvious to anyone who has to debug or re-spin it, and it keeps the antenna keep-out away from the supply and relay traces. When you only have two layers, the floor plan &lt;em&gt;is&lt;/em&gt; your isolation strategy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqy1ch1h9hfkkgbzz7t53.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqy1ch1h9hfkkgbzz7t53.jpg" alt="Hand-held control board during bring-up, with the mains assembly alongside" width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The mechanical stack is the other half of that decision: several boards, a display, terminals and the mains section all have to fit the same housing, with spacers that survive assembly variation. A board that works on the bench but cannot be assembled 6,000 times is not a finished design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four firmware decisions that mattered most
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Metering is a calibration problem, not a driver problem
&lt;/h3&gt;

&lt;p&gt;Reading a sampling channel is the easy part. The hard part is that no two units leave the line identical — sensing components, references and layout parasitics all vary. Calibration therefore belongs in the manufacturing flow, not in a one-off lab script: per-unit coefficients need a defined place to live on the device, and a firmware path to write and verify them without reflashing the whole image. Get that path wrong and you cannot correct a drift issue in the field.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A 30-second cadence is a product decision
&lt;/h3&gt;

&lt;p&gt;Reporting every 30 seconds sounds arbitrary. It is a trade: short enough that a dashboard feels live, long enough that thousands of devices do not become a self-inflicted load on your own broker, and long enough that a brief WiFi hiccup does not turn into a burst of catch-up traffic. Once you pick a cadence, the timestamp belongs to the &lt;em&gt;sample&lt;/em&gt;, not to the moment the packet finally leaves — otherwise a reconnecting device quietly rewrites history.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Treat offline as the normal state
&lt;/h3&gt;

&lt;p&gt;Site WiFi is not a lab network. APs reboot, credentials change, and a metal enclosure changes the signal. Firmware has to assume disconnection: bounded buffering, reconnect with backoff, and — most importantly — never letting a network failure block local switching, display or metering. Protection and measurement stay local; the cloud is an observer, not a dependency. That boundary is the single most important architectural decision in this kind of product.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. OTA and a safe mode are part of the product, not a phase two
&lt;/h3&gt;

&lt;p&gt;Any connected mains product will need firmware changes after installation. Plan for OTA, a rollback path and a safe mode from the first board spin. If a new image cannot reach a healthy state, the device must still fall back to something that switches and displays safely.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7z8y1i8qg38q74eggzc8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7z8y1i8qg38q74eggzc8.jpg" alt="Bring-up and functional test: button press, status LED, relay and power section" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What production adds that prototypes never show you
&lt;/h2&gt;

&lt;p&gt;Prototype validation asks one question: does it work? Production asks a harder one: does the six-thousandth unit behave like the first? The things that bite are the boring ones — a calibration fixture that is repeatable across operators, an end-of-line functional test that exercises relay, display, buttons and radio in a single pass, and a mechanical stack that tolerates assembly variation. Design the test points and the fixture interface into the PCB early; adding them after the enclosure is tooled is expensive.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frikcmw66sxuzfnlylv03.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frikcmw66sxuzfnlylv03.jpg" alt="A production batch of assembled control boards before final assembly" width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would do differently
&lt;/h2&gt;

&lt;p&gt;I would freeze the telemetry contract — topic, payload, units, timestamp semantics, and what offline means — before the PCB is finalised. Firmware and cloud can then evolve independently, and a field issue can be diagnosed from a payload instead of from a phone call. It is a document, not code, and it outlives every firmware revision.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Split the board by domain: noisy mains, sampling and relay on one side, radio and digital on the other.&lt;/li&gt;
&lt;li&gt;Put calibration in the factory flow, not in a lab script.&lt;/li&gt;
&lt;li&gt;Keep safety-critical behaviour local. The cloud observes; it does not decide.&lt;/li&gt;
&lt;li&gt;Decide the telemetry contract early, and design the test fixture into the board.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;I work on connected hardware end to end — PCB, firmware and the cloud API behind it. This breaker is one of the products we design and manufacture in-house.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this article was drafted with AI assistance and reviewed and edited by the author. All specifications and figures come from our own shipped hardware.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Questions about calibration, the 30-second cadence or field reliability? Happy to go deeper in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>esp8266</category>
      <category>iot</category>
      <category>embedded</category>
      <category>hardware</category>
    </item>
    <item>
      <title>Stop Rebuilding the Same Firmware: Turning One-Off IoT Projects Into Reusable Assets</title>
      <dc:creator>Kevin Lee</dc:creator>
      <pubDate>Fri, 06 Nov 2026 12:04:31 +0000</pubDate>
      <link>https://dev.to/kevin-thingboot/stop-rebuilding-the-same-firmware-turning-one-off-iot-projects-into-reusable-assets-5f23</link>
      <guid>https://dev.to/kevin-thingboot/stop-rebuilding-the-same-firmware-turning-one-off-iot-projects-into-reusable-assets-5f23</guid>
      <description>&lt;p&gt;I used to think the hardest part of an embedded project was getting the board to boot.&lt;/p&gt;

&lt;p&gt;It isn't. The hardest part is what happens after you hand it over.&lt;/p&gt;

&lt;p&gt;For years I built commercial IoT projects on Espressif modules — ESP32 mostly, occasionally an ESP8266 when the BOM was tight. Sensor nodes, controller boxes, gateway firmware, the usual. They all followed the same arc: a few weeks of late nights fighting a flaky I2C bus or a modem that wouldn't reconnect, a demo that finally worked, final payment, and then silence. The code went into a folder named after the client. Six months later another client would ask for something 80% similar, and I'd start from scratch anyway, because the old code was so welded to that one job that untangling it took longer than rewriting.&lt;/p&gt;

&lt;p&gt;That's the part nobody mentions when you start taking contract work. You're not selling a product, you're selling your hours — and every project resets the clock.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqy1b405smpvsqm8jnmj8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqy1b405smpvsqm8jnmj8.png" alt="Schematic capture of an ESP32-based control board in an EDA tool" width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the code ends up unusable
&lt;/h2&gt;

&lt;p&gt;Looking back at a dozen or so of those projects, the same things kept going wrong.&lt;/p&gt;

&lt;p&gt;Coupling, mostly. Code written to hit one deadline tends to have the client's business rules baked into the driver layer. Swap the sensor, change the reporting interval, add a second protocol, and you're editing files that shouldn't know about each other. The code isn't bad — it was optimized for a delivery date, not for a second customer.&lt;/p&gt;

&lt;p&gt;Then there's the cloud assumption. Plenty of IoT stacks quietly assume a vendor's public cloud is sitting behind them. That's fine for a hobby thermostat. It falls apart the moment a factory tells you that line never touches the internet, or a buyer asks where the data physically lives. I've watched deals die on that question alone, with perfectly good firmware sitting on the table.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh8t2wxgvkys7vfflnhgf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh8t2wxgvkys7vfflnhgf.png" alt="Public cloud, private cloud and hybrid deployment options" width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Maintenance is the quiet one. Come back to a project after four months and you burn a day reconstructing why a particular retry loop exists. If you can't re-enter your own code cheaply, customizing it for somebody else gets expensive, you quote high, and the work goes elsewhere.&lt;/p&gt;

&lt;p&gt;And the least technical problem of all: distribution. Even a clean, well-factored solution goes nowhere when the only person who knows it exists is the client who paid for it. No listing, no integrators, no path to a second order. It just sits on a disk.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzq95l3xxnx50374fgpie.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzq95l3xxnx50374fgpie.png" alt="A debugging session in VS Code: the kind of context that gets lost once a project is archived" width="800" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I check before writing any application code now
&lt;/h2&gt;

&lt;p&gt;At some point I stopped comparing frameworks on feature lists and started asking a single question: can I sell this work twice?&lt;/p&gt;

&lt;p&gt;In practice that turns into four checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are the interfaces genuinely open — can a third-party system talk to this without me patching the core?&lt;/li&gt;
&lt;li&gt;Does it run fully on-prem out of the box, rather than as a week of plumbing after the fact?&lt;/li&gt;
&lt;li&gt;Is it modular enough that a new customer means new configuration instead of a fork?&lt;/li&gt;
&lt;li&gt;Is there any route from "working prototype" to "somebody else can order this"?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last one sounds like a business question and it is, but it's an engineering constraint too. If the stack around your code has no ecosystem — nowhere to publish a finished solution, no integrators picking it up, no manufacturing partner who can actually build the hardware — then what you've built is an asset with no buyer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ftmst1k96orz1t7rh8h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4ftmst1k96orz1t7rh8h.png" alt="PCB layout of an ESP32 board in Altium Designer" width="800" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack I landed on
&lt;/h2&gt;

&lt;p&gt;After enough of those projects I stopped hopping between frameworks and standardized on one for Espressif work: the ThingBoot device SDKs (ESP-IDF and Arduino flavors, plus STM32). What made it stick wasn't a feature list. Interfaces are standardized enough that client-specific logic stays in a thin layer on top instead of leaking into drivers, and both public-cloud and fully air-gapped on-prem deployments are supported without maintaining a separate fork. Those were exactly the two things that used to kill reuse for me.&lt;/p&gt;

&lt;p&gt;There's an ecosystem side too — a place to list finished solutions and get them in front of integrators and manufacturing partners. That's the only answer I've found so far to the "nobody knows this exists" problem.&lt;/p&gt;

&lt;p&gt;If you're evaluating alternatives, the same four questions still apply. ThingsBoard, EMQX, JetLinks, a hand-rolled MQTT stack — all of them can be made to work. Just be honest about which ones make you own the on-prem story yourself, and read the license before you tell a client something is "open source". That word has gotten slippery lately.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4dogsfe7bx1ulyiyrhv7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4dogsfe7bx1ulyiyrhv7.png" alt="PlatformIO configuration pulling the ThingBoot ESP32/ESP8266 Arduino SDK from GitHub" width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The part that actually changed things
&lt;/h2&gt;

&lt;p&gt;None of this was a technical breakthrough. It was a shift in what I optimize for on day one. Every project should leave something behind that outlives the invoice — a module, an interface, a deployment recipe, a demo somebody else can find.&lt;/p&gt;

&lt;p&gt;Billing by the hour gets you paid once. Accumulating reusable assets gets you paid again without redoing the work. Written down it sounds obvious, but it changes the first question you ask: not "what's the fastest way to make this board work" but "which part of this do I want to keep".&lt;/p&gt;

&lt;p&gt;If you've been through the same cycle — delivered, archived, next client starts from zero — I'd like to hear what broke reusability in your case. In my experience it's usually one small assumption buried in the networking layer.&lt;/p&gt;

</description>
      <category>iot</category>
      <category>esp32</category>
      <category>embedded</category>
      <category>firmware</category>
    </item>
    <item>
      <title>ESP32 Self-Hosted IoT Platform: Your First MQTT Message in 15 Minutes</title>
      <dc:creator>Kevin Lee</dc:creator>
      <pubDate>Fri, 06 Nov 2026 04:42:53 +0000</pubDate>
      <link>https://dev.to/kevin-thingboot/esp32-self-hosted-iot-platform-your-first-mqtt-message-in-15-minutes-4i6p</link>
      <guid>https://dev.to/kevin-thingboot/esp32-self-hosted-iot-platform-your-first-mqtt-message-in-15-minutes-4i6p</guid>
      <description>&lt;p&gt;&lt;em&gt;This article is cross-posted from the &lt;a href="https://github.com/Kevin-ThingBoot/thingboot-guides" rel="noopener noreferrer"&gt;ThingBoot Guides&lt;/a&gt; repository on GitHub, where you'll also find the &lt;a href="https://github.com/Kevin-ThingBoot/thingboot-guides/blob/main/guides/01-esp32-mqtt-platform.zh-CN.md" rel="noopener noreferrer"&gt;Chinese version&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Most ESP32 tutorials stop at "blink an LED". Real products need the next step:&lt;br&gt;
get your device talking to a platform you &lt;strong&gt;own&lt;/strong&gt; — not someone else's cloud.&lt;/p&gt;

&lt;p&gt;This guide walks you from a stock ESP32 to publishing telemetry and receiving&lt;br&gt;
commands over MQTT against a self-hosted broker. It takes about 15 minutes.&lt;/p&gt;
&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An ESP32 dev board (ESP32 / ESP32-S3 / ESP32-C3 all work)&lt;/li&gt;
&lt;li&gt;USB cable + Arduino IDE (or PlatformIO)&lt;/li&gt;
&lt;li&gt;A machine that can run an MQTT broker (Docker is fine)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ESP32] --WiFi--&amp;gt; [MQTT Broker (self-hosted)] ---&amp;gt; [Your apps / dashboards / AI agents]
         &amp;lt;-------- (commands, OTA triggers) ------
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Self-hosting the broker means: your data stays on your network, you control&lt;br&gt;
auth, and AI agents can talk to devices through the same topics later.&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 1 — Run a broker
&lt;/h2&gt;

&lt;p&gt;The fastest way to get a local broker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; 1883:1883 &lt;span class="nt"&gt;--name&lt;/span&gt; mosquitto eclipse-mosquitto
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then create a minimal &lt;code&gt;mosquitto.conf&lt;/code&gt; allowing local testing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;listener 1883
allow_anonymous true
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;For production: always enable auth + TLS. See the &lt;a href="https://github.com/Kevin-ThingBoot/thingboot-guides/blob/main/guides/02-esp32-ota-production.md" rel="noopener noreferrer"&gt;OTA &amp;amp; safe-mode guide&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Step 2 — Flash the ESP32
&lt;/h2&gt;

&lt;p&gt;Install the &lt;a href="https://github.com/ThingBoot/thingboot-device-esp-arduino-sdk" rel="noopener noreferrer"&gt;ThingBoot ESP Arduino SDK&lt;/a&gt;,&lt;br&gt;
which wraps WiFi provisioning, MQTT reconnect, and OTA into a setup()/loop()&lt;br&gt;
model. Or use plain Arduino with PubSubClient — the flow is the same:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="cp"&gt;#include&lt;/span&gt; &lt;span class="cpf"&gt;&amp;lt;WiFi.h&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;
#include&lt;/span&gt; &lt;span class="cpf"&gt;&amp;lt;PubSubClient.h&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;
&lt;/span&gt;
&lt;span class="n"&gt;WiFiClient&lt;/span&gt; &lt;span class="n"&gt;net&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;PubSubClient&lt;/span&gt; &lt;span class="nf"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;net&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;setup&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;Serial&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;begin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;115200&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="n"&gt;WiFi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;begin&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"YOUR_SSID"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"YOUR_PASSWORD"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;WiFi&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="n"&gt;WL_CONNECTED&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;delay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

  &lt;span class="n"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;setServer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"192.168.1.100"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1883&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="c1"&gt;// your broker's LAN IP&lt;/span&gt;
  &lt;span class="n"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;setCallback&lt;/span&gt;&lt;span class="p"&gt;([](&lt;/span&gt;&lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;byte&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;unsigned&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;len&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;Serial&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;printf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"command received on %s: %.*s&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;len&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;char&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kt"&gt;void&lt;/span&gt; &lt;span class="nf"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;connected&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="n"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"esp32-demo"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="n"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;loop&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

  &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;uint32_t&lt;/span&gt; &lt;span class="n"&gt;last&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;millis&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;last&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;5000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;last&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;millis&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="n"&gt;mqtt&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;publish&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"things/esp32-demo/telemetry"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                 &lt;span class="s"&gt;"{&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;temp&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;:25.5,&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;rssi&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s"&gt;:-60}"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 3 — Verify
&lt;/h2&gt;

&lt;p&gt;Subscribe from your computer and watch data arrive:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mosquitto_sub &lt;span class="nt"&gt;-h&lt;/span&gt; 192.168.1.100 &lt;span class="nt"&gt;-t&lt;/span&gt; &lt;span class="s2"&gt;"things/#"&lt;/span&gt; &lt;span class="nt"&gt;-v&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then send a command back to the device:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;mosquitto_pub &lt;span class="nt"&gt;-h&lt;/span&gt; 192.168.1.100 &lt;span class="nt"&gt;-t&lt;/span&gt; &lt;span class="s2"&gt;"things/esp32-demo/cmd"&lt;/span&gt; &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s1"&gt;'{"relay":"on"}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see telemetry flowing and the device reacting to commands — congratulations,&lt;br&gt;
that's the entire foundation of an IoT fleet: &lt;strong&gt;device → platform → device&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to go next
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Goal&lt;/th&gt;
&lt;th&gt;Guide&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OTA updates for production fleets (A/B partitions, rollback, safe mode)&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/Kevin-ThingBoot/thingboot-guides/blob/main/guides/02-esp32-ota-production.md" rel="noopener noreferrer"&gt;Part 2&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Letting an AI agent control devices via MCP&lt;/td&gt;
&lt;td&gt;Part 3 (planned)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full SDK with provisioning + rollback&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/ThingBoot" rel="noopener noreferrer"&gt;ThingBoot SDKs&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;p&gt;&lt;em&gt;ThingBoot provides free device SDKs and a self-hosted IoT platform.&lt;br&gt;
Questions? Open an &lt;a href="https://github.com/Kevin-ThingBoot/thingboot-guides/issues" rel="noopener noreferrer"&gt;issue&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>esp32</category>
      <category>iot</category>
      <category>mqtt</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
