#ifndef _MQTT_H_
#define _MQTT_H_

#include "Ethernet/socket.h"
#include "Internet/MQTT/mqtt_interface.h"
#include "Internet/MQTT/MQTTClient.h"

#define SOCK_MQTT       2
#define MQTT_BUFFER_SIZE	512     // 2048

extern uint8_t mqtt_readBuffer[MQTT_BUFFER_SIZE];
extern wiz_NetInfo netInfo;
extern uint8_t MQTT_targetIP[4];

void messageArrived(MessageData* md);
void mqtt_pub(Client* mqtt_client, char * mqtt_topic, char * mqtt_msg, int mqtt_msg_len);

#endif
