# Code Examples

Ready-to-use MQTT-based examples for different platforms and environments.

* [**STM32Cube MQTT Client**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/tree/main/STM32F407_PPPoS_MQTT) - a FreeRTOS-based implementation for STM32 microcontrollers using generic AT command-based cellular modems like SIM7000
* [**Python 3** ](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/Python3/README.md)- suitable for use on Single Board Computers (SBCs) like `Raspberry Pi` and some Industrial IoT gateways
* [**MicroPython**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/MicroPython/README.md) - a fun and easy way of creating the device firmware
* [**Arduino / PlatformIO**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/Arduino_Blynk_MQTT/README.md) - a pre-configured project that supports over 15 connectivity-enabled boards, including the `Espressif ESP32`, `Raspberry Pi Pico W`, `Nano 33 IoT`, `Nano RP2040 Connect`, `UNO R4 WiFi`, `Seeed Wio Terminal`, etc.
* [**Plain C**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/C_libmosquitto/README.md) with the `Mosquitto` library - tailored for advanced use cases needing high performance, compact size, or system-level integration
* [**Lua**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/Lua_OpenWrt/README.md) - ready for deployment on `OpenWrt`-based routers and SBCs like `Onion Omega2`
* [**HTML5 / JavaScript**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/HTML5_WebSocket/README.md) - thanks to the `WebSocket` technology, this example can be used directly from the browser[**‍**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/ESP-IDF-Cellular/README.md)
* [**ESP-IDF Cellular**](https://github.com/Blynk-Technologies/Blynk-MQTT-Samples/blob/main/ESP-IDF-Cellular/README.md) - for Espressif ESP32 devices with a cellular modem


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blynk.io/en/blynk.cloud-mqtt-api/device-mqtt-api/code-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
