
PubSubClient client
Articles
-
Nov 14, 2024 |
hackster.io | Mechatronics Lab |PubSubClient client
Things used in this project The DHT11 sensor will measure temperature and humidity, which the ESP32 will read and publish to Home Assistant using MQTT. Home Assistant will then display the data in real-time, and you can also set up automations or alerts based on the sensor readings.
-
Nov 11, 2024 |
hackster.io | Alvaro Morales |PubSubClient client
Things used in this project ×1×1In this project, we will see how to create a Telegram bot that communicates via MQTT to interact with ESP32 boards.The reason for using MQTT is that it is a very lightweight protocol that can be easily supported by an ESP32. On the other hand, the heavier tasks are handled by the Raspberry Pi, which acts as the MQTT broker as well as the server for the bot.
-
Oct 30, 2024 |
hackster.io | PubSubClient client
Things used in this project ×1×1M5Stack CM4Stack Development Kit×1Raspberry Pi 3 Model B(A raspberry pi can be used in place of the CM4Stack)×1The InspirationEvery year, I host a Halloween party with a single word as its theme, where people dress up based on their interpretation of that word. This year's was "mad", and I couldn't think of a mad scientist that was also as angry-mad as Rick from Rick and Morty. Wearing a lab coat and dawning the blue hair doesn't cut it, though.
-
Jun 29, 2024 |
blog.csdn.net | PubSubClient client
一、项目概述 厌倦了传统鱼缸的繁琐管理? 想要随时随地了解鱼儿的生活状态? 本项目将带你使用 ESP32 开发板、MQTT 通信协议和微信小程序,打造一个功能完善的智能鱼缸系统。 实时监测水温、远程控制灯光、定时定量喂食…… 一切尽在掌握! 二、系统架构 本系统采用典型的物联网架构,主要分为硬件层、软件层和云平台三个部分: 2.1 硬件层 ESP32 开发板: 系统的控制核心,负责采集传感器数据、控制外设以及与云端进行通信。 传感器: 水温传感器(DS18B20)、光照传感器(BH1750)等,实时监测鱼缸环境参数。 执行器: LED 灯带(WS2812B)、水泵、喂食器等,用于调节鱼缸环境和实现自动化功能。 2.2 软件层 ESP32 程序: 负责读取传感器数据、控制外设、连接 WiFi 和 MQTT Broker,并将数据发布到云端。 微信小程序: 提供用户界面,用于显示鱼缸状态、发送控制指令以及设置定时任务等。 2.3 云平台 MQTT Broker: 负责接收来自 ESP32 的数据,并转发至订阅该主题的客户端,例如微信小程序。 2.4 系统架构图 三、实例代码介绍...
-
Apr 1, 2024 |
blog.csdn.net | PubSubClient client
1.公共服务器 学习物联网就离不开服务器,如果你资金充足的话,可以自己购买或者租用一个服务器。本次我选择,使用免费的公共MQTT服务器。它的端口及Broker信息如下: 网址为: 免费的公共 MQTT 服务器 | EMQ (emqx.com)https://www.emqx.com/zh/mqtt/public-mqtt5-broker 2.MQTT 调试工具 为了弄清楚,你的数据是否成功发送到了对应的服务器上,你需要使用一个mqtt调试工具。你可以设置它的服务器地址,端口号,发布主题,订阅主题,这样就能调试了。你在MQTT调试工具上的订阅主题设置为ESP8266上的发布主题,就可以看到从ESP8266传输过来的数据! 这里我直接给出我用的mqtt调试工具的安装包: 【免费】MQTT调试助手物联网必备资源-CSDN文库https://download.csdn.net/download/guangali/88865017 3.代码设计 简单介绍一下代码的重要部分吧 首先,前三行是导入头文件,...
Try JournoFinder For Free
Search and contact over 1M+ journalist profiles, browse 100M+ articles, and unlock powerful PR tools.
Start Your 7-Day Free Trial →