no-OS
Loading...
Searching...
No Matches
common_data.h File Reference

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

#include "parameters.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:

Macros

#define LOCAL   0
 
#define TEST_MOSQUITTO   1
 
#define MQTT_ECLIPSE   2
 
#define SERVER_ADDR   "test.mosquitto.org"
 
#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.

SPDX-License-Identifier: BSD-3-Clause

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   "test.mosquitto.org"

◆ 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
extern

◆ irq_ip

struct no_os_irq_init_param irq_ip
extern

◆ timer_ip

struct no_os_timer_init_param timer_ip
extern

◆ uart_ip

struct no_os_uart_init_param uart_ip
extern

UART initialization parameters for console communication