no-OS
Macros | Variables
common_data.h File Reference

Defines common data to be used by demo_esp examples. More...

#include "platform_includes.h"
#include "no_os_uart.h"
#include "no_os_timer.h"
#include "no_os_gpio.h"
#include "no_os_irq.h"
Include dependency graph for common_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOCAL   0
 
#define TEST_MOSQUITTO   1
 
#define MQTT_ECLIPSE   2
 
#define SERVER_ADDR   "10.76.84.237"
 
#define SERVER_PORT   1883
 
#define BUFF_LEN   200
 
#define WIFI_SSID   "WifiSSID"
 
#define WIFI_PASS   "Password"
 
#define MQTT_PUBLISH_TOPIC   "sensor"
 
#define MQTT_SUBSCRIBE_TOPIC   "esp_messages"
 
#define MQTT_CONFIG_CMD_TIMEOUT   20000
 
#define MQTT_CONFIG_VERSION   MQTT_VERSION_3_1
 
#define MQTT_CONFIG_KEEP_ALIVE   7200
 
#define MQTT_CONFIG_CLIENT_NAME   "esp-client"
 
#define MQTT_CONFIG_CLI_USER   NULL
 
#define MQTT_CONFIG_CLI_PASS   NULL
 
#define MQTT_PAYLOAD_BUFF_LEN   100
 
#define SCAN_SENSOR_TIME   500
 

Variables

struct no_os_uart_init_param uart_ip
 
struct no_os_irq_init_param irq_ip
 
struct no_os_timer_init_param timer_ip
 
struct no_os_gpio_init_param gpio_wifi_rst_ip
 

Detailed Description

Defines common data to be used by demo_esp examples.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2023(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ BUFF_LEN

#define BUFF_LEN   200

◆ LOCAL

#define LOCAL   0

◆ MQTT_CONFIG_CLI_PASS

#define MQTT_CONFIG_CLI_PASS   NULL

◆ MQTT_CONFIG_CLI_USER

#define MQTT_CONFIG_CLI_USER   NULL

◆ MQTT_CONFIG_CLIENT_NAME

#define MQTT_CONFIG_CLIENT_NAME   "esp-client"

◆ MQTT_CONFIG_CMD_TIMEOUT

#define MQTT_CONFIG_CMD_TIMEOUT   20000

◆ MQTT_CONFIG_KEEP_ALIVE

#define MQTT_CONFIG_KEEP_ALIVE   7200

◆ MQTT_CONFIG_VERSION

#define MQTT_CONFIG_VERSION   MQTT_VERSION_3_1

◆ MQTT_ECLIPSE

#define MQTT_ECLIPSE   2

◆ MQTT_PAYLOAD_BUFF_LEN

#define MQTT_PAYLOAD_BUFF_LEN   100

◆ MQTT_PUBLISH_TOPIC

#define MQTT_PUBLISH_TOPIC   "sensor"

◆ MQTT_SUBSCRIBE_TOPIC

#define MQTT_SUBSCRIBE_TOPIC   "esp_messages"

◆ SCAN_SENSOR_TIME

#define SCAN_SENSOR_TIME   500

◆ SERVER_ADDR

#define SERVER_ADDR   "10.76.84.237"

◆ SERVER_PORT

#define SERVER_PORT   1883

◆ TEST_MOSQUITTO

#define TEST_MOSQUITTO   1

◆ WIFI_PASS

#define WIFI_PASS   "Password"

◆ WIFI_SSID

#define WIFI_SSID   "WifiSSID"

Variable Documentation

◆ gpio_wifi_rst_ip

struct no_os_gpio_init_param gpio_wifi_rst_ip

◆ irq_ip

struct no_os_irq_init_param irq_ip

◆ timer_ip

struct no_os_timer_init_param timer_ip

◆ uart_ip

struct no_os_uart_init_param uart_ip