ems/ems_c/bsp/bsp_mqttAsync.h

12 lines
309 B
C
Raw Normal View History

2025-05-13 17:49:49 +08:00
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "MQTTAsync.h"
#include "bsp_msgQueue.h"
#define ADDRESS "tcp://broker.hivemq.com:1883"
#define CLIENTID "ExampleMQTTAsyncClient"
#define TOPIC "test/topic"
#define PAYLOAD "Hello MQTT"
#define QOS 1
#define TIMEOUT 10000L