mirror of https://github.com/lumapu/ahoy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.1 KiB
44 lines
1.1 KiB
#ifndef __CONFIG_H__
|
|
#define __CONFIG_H__
|
|
|
|
// fallback WiFi info
|
|
#define FB_WIFI_SSID "YOUR_WIFI_SSID"
|
|
#define FB_WIFI_PWD "YOUR_WIFI_PWD"
|
|
|
|
|
|
// access point info
|
|
#define WIFI_AP_SSID "AHOY DTU"
|
|
#define WIFI_AP_PWD "esp_8266"
|
|
// stay in access point mode all the time
|
|
//#define AP_ONLY
|
|
|
|
|
|
//-------------------------------------
|
|
// CONFIGURATION - COMPILE TIME
|
|
//-------------------------------------
|
|
// time in seconds how long the station info (ssid + pwd) will be tried
|
|
#define WIFI_TRY_CONNECT_TIME 15
|
|
|
|
// time during the ESP will act as access point on connection failure (to
|
|
// station) in seconds
|
|
#define WIFI_AP_ACTIVE_TIME 3*60
|
|
|
|
// default device name
|
|
#define DEF_DEVICE_NAME "ESP-DTU"
|
|
|
|
// number of packets hold in buffer
|
|
#define PACKET_BUFFER_SIZE 30
|
|
|
|
// number of configurable inverters
|
|
#define MAX_NUM_INVERTERS 3
|
|
|
|
// maximum human readable inverter name length
|
|
#define MAX_NAME_LENGTH 16
|
|
|
|
// maximum buffer length of packet received / sent to RF24 module
|
|
#define MAX_RF_PAYLOAD_SIZE 64
|
|
|
|
// changes the style of "/setup" page, visualized = nicer
|
|
#define LIVEDATA_VISUALIZED
|
|
|
|
#endif /*__CONFIG_H__*/
|
|
|