sys_mqtt.h 357 B

1234567891011121314151617
  1. #ifndef SYS_MQTT_H
  2. #define SYS_MQTT_H
  3. #include <stdint.h>
  4. #include "mqttclient.h"
  5. extern int mqtt_connectFlag;
  6. extern QueueHandle_t xQueue1;
  7. struct Pub_Queue
  8. {
  9. uint16_t pubLength;
  10. mqtt_qos_t qos;
  11. char *pub_topic;
  12. char *message;
  13. };
  14. void mqtt_task_creat(void);
  15. void mqtt_publish_data(char *payload,mqtt_qos_t qos,uint16_t pub_length,char *topic);
  16. #endif