33#ifndef __COMMON_DATA_H__
34#define __COMMON_DATA_H__
36#include "platform_includes.h"
47#define TEST_MOSQUITTO 1
50#if SERVER_TO_USE==TEST_MOSQUITTO
51#define SERVER_ADDR "test.mosquitto.org"
52#elif SERVER_TO_USE==MQTT_ECLIPSE
53#define SERVER_ADDR "mqtt.eclipse.org"
55#define SERVER_ADDR "10.76.84.237"
58#define SERVER_PORT 1883
64#define WIFI_SSID "WifiSSID"
65#define WIFI_PASS "Password"
68#define MQTT_PUBLISH_TOPIC "sensor"
69#define MQTT_SUBSCRIBE_TOPIC "esp_messages"
70#define MQTT_CONFIG_CMD_TIMEOUT 20000
71#define MQTT_CONFIG_VERSION MQTT_VERSION_3_1
72#define MQTT_CONFIG_KEEP_ALIVE 7200
73#define MQTT_CONFIG_CLIENT_NAME "esp-client"
74#define MQTT_CONFIG_CLI_USER NULL
75#define MQTT_CONFIG_CLI_PASS NULL
76#define MQTT_PAYLOAD_BUFF_LEN 100
79#define SCAN_SENSOR_TIME 500
struct no_os_uart_init_param uart_ip
Definition common_data.c:52
struct no_os_timer_init_param timer_ip
Definition common_data.c:54
struct no_os_irq_init_param irq_ip
Definition common_data.c:48
struct no_os_gpio_init_param gpio_wifi_rst_ip
Definition common_data.c:62
Header file of GPIO Interface.
Header file of IRQ interface.
Timer control module header.
Header file of UART interface.
Structure holding the parameters for GPIO initialization.
Definition no_os_gpio.h:67
Structure holding the initial parameters for Interrupt Request.
Definition no_os_irq.h:101
Structure holding the parameters for timer initialization.
Definition no_os_timer.h:71
Structure holding the parameters for UART initialization.
Definition no_os_uart.h:98