Go to the documentation of this file.
39 #ifndef __COMMON_DATA_H__
40 #define __COMMON_DATA_H__
45 #include "platform_includes.h"
60 #define TEST_MOSQUITTO 1
61 #define MQTT_ECLIPSE 2
63 #if SERVER_TO_USE==TEST_MOSQUITTO
64 #define SERVER_ADDR "test.mosquitto.org"
65 #elif SERVER_TO_USE==MQTT_ECLIPSE
66 #define SERVER_ADDR "mqtt.eclipse.org"
68 #define SERVER_ADDR "10.76.84.237"
71 #define SERVER_PORT 1883
77 #define WIFI_SSID "WifiSSID"
78 #define WIFI_PASS "Password"
81 #define MQTT_PUBLISH_TOPIC "sensor"
82 #define MQTT_SUBSCRIBE_TOPIC "esp_messages"
83 #define MQTT_CONFIG_CMD_TIMEOUT 20000
84 #define MQTT_CONFIG_VERSION MQTT_VERSION_3_1
85 #define MQTT_CONFIG_KEEP_ALIVE 7200
86 #define MQTT_CONFIG_CLIENT_NAME "esp-client"
87 #define MQTT_CONFIG_CLI_USER NULL
88 #define MQTT_CONFIG_CLI_PASS NULL
89 #define MQTT_PAYLOAD_BUFF_LEN 100
92 #define SCAN_SENSOR_TIME 500
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
Header file of IRQ interface.
struct no_os_uart_init_param uart_ip
Definition: common_data.c:58
Timer control module header.
struct no_os_gpio_init_param gpio_wifi_rst_ip
Definition: common_data.c:74
struct no_os_irq_init_param irq_ip
Definition: common_data.c:60
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:89
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:116
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:113
Header file of GPIO Interface.
Header file of UART interface.
struct no_os_timer_init_param timer_ip
Definition: common_data.c:66