ems/ems_c/bsp/bsp_mqttAsync.h

12 lines
309 B
C

#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