Go to the documentation of this file.
33 #ifndef __COMMON_DATA_H__
34 #define __COMMON_DATA_H__
39 #include "platform_includes.h"
54 #define TEST_MOSQUITTO 1
55 #define MQTT_ECLIPSE 2
57 #if SERVER_TO_USE==TEST_MOSQUITTO
58 #define SERVER_ADDR "test.mosquitto.org"
59 #elif SERVER_TO_USE==MQTT_ECLIPSE
60 #define SERVER_ADDR "mqtt.eclipse.org"
62 #define SERVER_ADDR "10.76.84.237"
65 #define SERVER_PORT 1883
71 #define WIFI_SSID "WifiSSID"
72 #define WIFI_PASS "Password"
75 #define MQTT_PUBLISH_TOPIC "sensor"
76 #define MQTT_SUBSCRIBE_TOPIC "esp_messages"
77 #define MQTT_CONFIG_CMD_TIMEOUT 20000
78 #define MQTT_CONFIG_VERSION MQTT_VERSION_3_1
79 #define MQTT_CONFIG_KEEP_ALIVE 7200
80 #define MQTT_CONFIG_CLIENT_NAME "esp-client"
81 #define MQTT_CONFIG_CLI_USER NULL
82 #define MQTT_CONFIG_CLI_PASS NULL
83 #define MQTT_PAYLOAD_BUFF_LEN 100
86 #define SCAN_SENSOR_TIME 500
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
Header file of IRQ interface.
struct no_os_uart_init_param uart_ip
Definition: common_data.c:52
Timer control module header.
struct no_os_gpio_init_param gpio_wifi_rst_ip
Definition: common_data.c:68
struct no_os_irq_init_param irq_ip
Definition: common_data.c:54
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:83
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
Header file of GPIO Interface.
Header file of UART interface.
struct no_os_timer_init_param timer_ip
Definition: common_data.c:60