Yuri Trikoz
2020-10-18 09:39:37 +03:00
parent 74b526e2f1
commit d3ad04eae6
3 changed files with 36 additions and 16 deletions

View File

@@ -1,33 +1,47 @@
#pragma once #pragma once
//=================Firmeare================= //
// Firmware
//
#define FIRMWARE_NAME "esp8266-iotm" #define FIRMWARE_NAME "esp8266-iotm"
#define FIRMWARE_VERSION 257 #define FIRMWARE_VERSION 257
#define FLASH_4MB true #define FLASH_4MB true
//=================System=================== //
// System
//
#define NUM_BUTTONS 6 #define NUM_BUTTONS 6
#define LED_PIN 2 #define LED_PIN 2
//=================MQTT===================== //
// MQTT
//
#define MQTT_RECONNECT_INTERVAL 20000 #define MQTT_RECONNECT_INTERVAL 20000
//===============Telemetry================== //
// Telemetry
//
#define TELEMETRY_UPDATE_INTERVAL_MIN 60 #define TELEMETRY_UPDATE_INTERVAL_MIN 60
//=============Configuration================ //
// Configuration
//
#define DEVICE_CONFIG_FILE "s.conf.csv" #define DEVICE_CONFIG_FILE "s.conf.csv"
#define DEVICE_SCENARIO_FILE "s.scen.txt" #define DEVICE_SCENARIO_FILE "s.scen.txt"
//=============System parts================= //
// System parts
//
//#define OTA_UPDATES_ENABLED //#define OTA_UPDATES_ENABLED
//#define MDNS_ENABLED //#define MDNS_ENABLED
//#define WEBSOCKET_ENABLED //#define WEBSOCKET_ENABLED
//#define LAYOUT_IN_RAM //#define LAYOUT_IN_RAM
//#define UDP_ENABLED //#define UDP_ENABLED
#define SSDP_EN #define SSDP_ENABLED
//=========Sensors enable/disable=========== //
// Sensors enable/disable
//
#define TANK_LEVEL_SAMPLES 10 #define TANK_LEVEL_SAMPLES 10
#define LEVEL_ENABLED #define LEVEL_ENABLED
#define ANALOG_ENABLED #define ANALOG_ENABLED
@@ -36,11 +50,15 @@
#define BMP_ENABLED #define BMP_ENABLED
#define BME_ENABLED #define BME_ENABLED
//=========Gears enable/disable=========== //
// Gears enable/disable
//
#define STEPPER_ENABLED #define STEPPER_ENABLED
#define SERVO_ENABLED #define SERVO_ENABLED
//=========Other enable/disable=========== //
// Other enable/disable
//
#define LOGGING_ENABLED #define LOGGING_ENABLED
#define SERIAL_ENABLED #define SERIAL_ENABLED
#define PUSH_ENABLED #define PUSH_ENABLED

View File

@@ -4,8 +4,6 @@
#include "Consts.h" #include "Consts.h"
#ifdef SSDP_EN #ifdef SSDP_ENABLED
extern void SsdpInit(); void SsdpInit();
extern String xmlNode(String tags, String data);
extern String decToHex(uint32_t decValue, byte desiredStringLength);
#endif #endif

View File

@@ -1,15 +1,19 @@
#include "SSDP.h" #include "SSDP.h"
#include "Global.h" #include "Global.h"
#ifdef SSDP_EN #ifdef SSDP_ENABLED
#ifdef ESP8266 #ifdef ESP8266
#include <ESP8266SSDP.h> #include <ESP8266SSDP.h>
#endif #endif
#ifdef ESP32 #ifdef ESP32
#include <ESP32SSDP.h> #include <ESP32SSDP.h>
#endif #endif
String xmlNode(String tags, String data);
String decToHex(uint32_t decValue, byte desiredStringLength);
//39164 //39164
//457684 //457684
void SsdpInit() { void SsdpInit() {