2025年9月27日
摘要: 项目简介 主体功能基于 ESP32-C3 开发板,使用 ESP-IDF(5.1.6) 框架开发。 MQTT 服务端基于 Windows 窗体应用,使用 MQTTnet.Server(5.0.1) 组件开发。 主要功能 长按 BOOT 按键,启动 Wi-Fi,进入 station + soft-AP 阅读全文
posted @ 2025-09-27 15:46 星辰河岳 阅读(93) 评论(0) 推荐(0)
摘要: Form.cs namespace mymqtt { using MQTTnet.Server; using System.Buffers; using System.Text; public partial class Form : System.Windows.Forms.Form { priv 阅读全文
posted @ 2025-09-27 14:55 星辰河岳 阅读(25) 评论(0) 推荐(0)
摘要: main.c #include "esp_random.h" #include "led_strip.h" #include "nvs_param.h" #include "button.h" #include "wifi.h" #include "mqtt.h" void app_main(voi 阅读全文
posted @ 2025-09-27 14:45 星辰河岳 阅读(14) 评论(0) 推荐(0)
摘要: mqtt.h #ifndef __MQTT_H #define __MQTT_H #include "mqtt_client.h" #include "esp_log.h" #define MQTT_SERVER_URI "mqtt://192.168.4.2:1883" #define MQTT_ 阅读全文
posted @ 2025-09-27 14:42 星辰河岳 阅读(10) 评论(0) 推荐(0)
摘要: wifi.h #ifndef __WIFI_H #define __WIFI_H #include <string.h> #include "esp_wifi.h" #include "esp_mac.h" #include "esp_log.h" #define WIFI_SSID "esp32c 阅读全文
posted @ 2025-09-27 14:39 星辰河岳 阅读(11) 评论(0) 推荐(0)
摘要: button.h #ifndef __BUTTON_H #define __BUTTON_H #include "freertos/FreeRTOS.h" #include "freertos/queue.h" #include "driver/gpio.h" #include "esp_log.h 阅读全文
posted @ 2025-09-27 14:35 星辰河岳 阅读(17) 评论(0) 推荐(0)
摘要: nvs_param.h #ifndef __NVS_PARAM_H #define __NVS_PARAM_H #include "nvs.h" #include "nvs_flash.h" #include "esp_log.h" #include "led_strip.h" void nvs_p 阅读全文
posted @ 2025-09-27 14:26 星辰河岳 阅读(15) 评论(0) 推荐(0)
摘要: led_strip.h #ifndef __LED_STRIP_H #define __LED_STRIP_H #include "driver/rmt_tx.h" #include "esp_log.h" typedef struct { uint8_t green; uint8_t red; u 阅读全文
posted @ 2025-09-27 14:19 星辰河岳 阅读(24) 评论(0) 推荐(0)