sys_mqtt.h 299 B

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