/* * @Date: 2024-07-17 15:59:04 * @LastEditors: lzc56 563451665@qq.com * @LastEditTime: 2025-01-02 09:52:46 * @FilePath: \software\main\inc\bsp_mqtt.h */ /* MQTT (over TCP) Example This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #ifndef __BSP_MQTT_H__ #define __BSP_MQTT_H__ #include #include #include #include #include #include "esp_mac.h" #include "esp_wifi.h" #include "esp_system.h" #include "nvs_flash.h" #include "esp_event.h" #include "esp_netif.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" #include "freertos/queue.h" #include "lwip/sockets.h" #include "lwip/dns.h" #include "lwip/netdb.h" #include "esp_log.h" #include "cJSON.h" #include "mqtt_client.h" #include "bsp_algCom.h" #ifdef __cplusplus extern "C" { #endif #define Test_SN "105240723001" extern TaskHandle_t MQTT_TaskHandle; extern esp_mqtt_client_handle_t mqtt_client; void mqtt_ConnectTask(void *arg); void mqtt_UploadOTAInfo(char *Info); void mqtt_UploadOTAProgress(char *Info); #ifdef __cplusplus } #endif #endif /* __BSP_STATION_H__ */