no-OS
Macros
parameters.h File Reference

Definitions specific to Maxim platform used by eval-ade9430 project. More...

#include "iot_sample_common.h"
Include dependency graph for parameters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UART_DEVICE_ID   1
 
#define INTC_DEVICE_ID   0
 
#define UART_IRQ_ID   UART1_IRQn
 
#define UART_BAUDRATE   57600
 
#define ADE9430_SAMPLES_NR   7999
 
#define WIFI_SSID   "WifiSSID"
 
#define WIFI_PWD   "WifiPassword"
 
#define SERVER_PORT   8883
 
#define SERVER_ADDR   "iot-hub-mopdcwnti4mly.azure-devices.net"
 
#define DPS_SERVER_ADDR   "dps-mopdcwnti4mly.azure-devices-provisioning.net"
 
#define AZ_IOT_PROVISIONING_CUSTOM_PAYLOAD   "{\"modelId\":\"dtmi:com:analog:ADX12345;1\"}"
 
#define AZ_IOT_PROVISIONING_ID_SCOPE   "0ne009919BB"
 
#define AZ_IOT_PROVISIONING_REGISTRATION_ID   "EnergyMonitoringDevice1"
 
#define SAMPLE_TYPE   PAHO_IOT_PROVISIONING
 
#define REGISTER_TOPIC_BUFFER_LENGTH   128
 
#define PROVISIONING_ENDPOINT_BUFFER_LENGTH   256
 
#define MQTT_PAYLOAD_BUFFER_LENGTH   256
 
#define CLIENT_ID_BUFFER_LENGTH   128
 
#define BUFF_LEN   200
 
#define TIMER_ID   1
 
#define MQTT_CONFIG_CMD_TIMEOUT   20000
 
#define MQTT_CONFIG_VERSION   MQTT_VERSION_3_1_1
 
#define MQTT_CONFIG_CLI_PASS   NULL
 
#define MQTT_CONFIG_KEEP_ALIVE   7200
 
#define SCAN_SENSOR_TIME   500
 
#define CA_CERT
 
#define DEVICE_CERT
 
#define DEVICE_PRIVATE_KEY
 

Detailed Description

Definitions specific to Maxim platform used by eval-ade9430 project.

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

◆ ADE9430_SAMPLES_NR

#define ADE9430_SAMPLES_NR   7999

◆ AZ_IOT_PROVISIONING_CUSTOM_PAYLOAD

#define AZ_IOT_PROVISIONING_CUSTOM_PAYLOAD   "{\"modelId\":\"dtmi:com:analog:ADX12345;1\"}"

◆ AZ_IOT_PROVISIONING_ID_SCOPE

#define AZ_IOT_PROVISIONING_ID_SCOPE   "0ne009919BB"

◆ AZ_IOT_PROVISIONING_REGISTRATION_ID

#define AZ_IOT_PROVISIONING_REGISTRATION_ID   "EnergyMonitoringDevice1"

◆ BUFF_LEN

#define BUFF_LEN   200

◆ CA_CERT

#define CA_CERT
Value:
"-----BEGIN CERTIFICATE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wBGntwFviXWLGDYMGiBMPSp\r\n" \
"VtB5eptX+YUdO84E+86irjOIrsgqO1G7MYu8beuonIrjgmtApOtT7xPPDS39YO1J\r\n" \
"mQoyLhuU7nr8QZbiLTi+dSBlytJFvPkgjrgqR7WWkLPEj0w=\r\n" \
"-----END CERTIFICATE-----\r\n"

◆ CLIENT_ID_BUFFER_LENGTH

#define CLIENT_ID_BUFFER_LENGTH   128

◆ DEVICE_CERT

#define DEVICE_CERT
Value:
"-----BEGIN CERTIFICATE-----\n" \
"MIICyDCCAbACFFJnmg1mTQALnBB/w4LUQTQ+hckpMA0GCSqGSIb3DQEBCwUAMB8x\r\n" \
"HTAbBgNVBAMMFEFuYWxvZyBEZXZpY2VzLCBJbmMuMB4XDTIzMDIyNzEwMTM1NloX\r\n" \
"DTIzMDMyOTEwMTM1NlowIjEgMB4GA1UEAwwXRW5lcmd5TW9uaXRvcmluZ0Rldmlj\r\n" \
"ZTEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDHjhmvEevCFkVm8g7D\r\n" \
"+9DJQHwt/pmWOg11EwmsmuaCt3V+j6KfujJRoqCUqlc0/vvqiaUKxlqKRq9Rdjnq\r\n" \
"YKcYvWOHT+pXpRlNPxbL/u9gL1t2PTb67UWYKQRYUaP+lH9UFJamKcVd6rDpJDbD\r\n" \
"lruzQUr542G5zlzeIsT8Bw9p2Qtk54bdenMK8bcGKcJTUSlLP++30lj1E5dg57XD\r\n" \
"uMiwz/dP3TC01/807K59vR3IwSCQUIbes1h3n4xTbgJrl1jx/G1FzGi/Oo5OBIQB\r\n" \
"3JFIs8nMMAElGutOAdznyLTzK0IzzvJylJeOJtlbafv2KB1CehNFkXVgkqnugZSX\r\n" \
"Vf4ZAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAAkI4/Bfo9bUUWmbzsfPRAACa1yr\r\n" \
"ZYhPm7gjB3UO2TNI1+kZq1mbptm4AQlRKHZOc4RwOKw2+gEc++FwK9v8Ai1EcVg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kHKHuxx4SSSrLuxUkRLz7rZkRvsEai\r\n" \
"mKmY/gyPLJZRq4Lr1lOwoCM=\r\n" \
"-----END PRIVATE KEY-----\r\n";

◆ DPS_SERVER_ADDR

#define DPS_SERVER_ADDR   "dps-mopdcwnti4mly.azure-devices-provisioning.net"

◆ INTC_DEVICE_ID

#define INTC_DEVICE_ID   0

◆ MQTT_CONFIG_CLI_PASS

#define MQTT_CONFIG_CLI_PASS   NULL

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

◆ MQTT_PAYLOAD_BUFFER_LENGTH

#define MQTT_PAYLOAD_BUFFER_LENGTH   256

◆ PROVISIONING_ENDPOINT_BUFFER_LENGTH

#define PROVISIONING_ENDPOINT_BUFFER_LENGTH   256

◆ REGISTER_TOPIC_BUFFER_LENGTH

#define REGISTER_TOPIC_BUFFER_LENGTH   128

◆ SAMPLE_TYPE

#define SAMPLE_TYPE   PAHO_IOT_PROVISIONING

◆ SCAN_SENSOR_TIME

#define SCAN_SENSOR_TIME   500

◆ SERVER_ADDR

#define SERVER_ADDR   "iot-hub-mopdcwnti4mly.azure-devices.net"

◆ SERVER_PORT

#define SERVER_PORT   8883

◆ TIMER_ID

#define TIMER_ID   1

◆ UART_BAUDRATE

#define UART_BAUDRATE   57600

◆ UART_DEVICE_ID

#define UART_DEVICE_ID   1

◆ UART_IRQ_ID

#define UART_IRQ_ID   UART1_IRQn

◆ WIFI_PWD

#define WIFI_PWD   "WifiPassword"

◆ WIFI_SSID

#define WIFI_SSID   "WifiSSID"