MeterLogger
Macros
user_config.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CFG_LOCATION   0x76 /* Please don't change or if you know what you doing */
 
#define SSID_LENGTH   32
 
#define SSID_ESCAPED_LENGTH   (SSID_LENGTH * 3)
 
#define AP_SSID_LENGTH   32
 
#define DEFAULT_METER_SERIAL   "9999999"
 
#define MQTT_TOPIC_L   (128)
 
#define MQTT_MESSAGE_L   (512)
 
#define MQTT_HOST   "loppen.christiania.org"
 
#define MQTT_PORT   1883
 
#define MQTT_BUF_SIZE   2048
 
#define MQTT_KEEPALIVE   60 /*second*/
 
#define MQTT_CLIENT_ID   "ML_%08X"
 
#define MQTT_USER   "esp8266"
 
#define MQTT_PASS   "chah5Kai"
 
#define DEFAULT_SECURITY   0
 
#define MQTT_RECONNECT_TIMEOUT   5 /*second*/
 
#define QUEUE_BUFFER_SIZE   8192
 
#define PROTOCOL_NAMEv31   /*MQTT version 3.1 compatible with Mosquitto v0.15*/
 
#define KEY   { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c }
 
#define STA_SSID   "Loppen Public"
 
#define STA_PASS   ""
 
#define STA_TYPE   AUTH_OPEN
 
#define STA_FALLBACK_SSID   "stofferFon"
 
#define STA_FALLBACK_PASS   "w1reless"
 
#define AP_SSID   "KAM_%07u"
 
#define AP_PASSWORD   "aabbccddeeff"
 
#define AP_TYPE   AUTH_WPA_WPA2_PSK
 
#define AP_NETWORK   "10.0.5.0"
 
#define AP_MESH_SSID   "mesh-%s"
 
#define AP_MESH_PASS   "w1reless"
 
#define AP_MESH_TYPE   AUTH_WPA_WPA2_PSK
 

Macro Definition Documentation

◆ AP_MESH_PASS

#define AP_MESH_PASS   "w1reless"

Definition at line 83 of file user_config.h.

◆ AP_MESH_SSID

#define AP_MESH_SSID   "mesh-%s"

Definition at line 82 of file user_config.h.

◆ AP_MESH_TYPE

#define AP_MESH_TYPE   AUTH_WPA_WPA2_PSK

Definition at line 84 of file user_config.h.

◆ AP_NETWORK

#define AP_NETWORK   "10.0.5.0"

Definition at line 81 of file user_config.h.

Referenced by wifi_softap_ip_config().

◆ AP_PASSWORD

#define AP_PASSWORD   "aabbccddeeff"

Definition at line 77 of file user_config.h.

◆ AP_SSID

#define AP_SSID   "KAM_%07u"

Definition at line 74 of file user_config.h.

◆ AP_SSID_LENGTH

#define AP_SSID_LENGTH   32

Definition at line 18 of file user_config.h.

◆ AP_TYPE

#define AP_TYPE   AUTH_WPA_WPA2_PSK

Definition at line 79 of file user_config.h.

◆ CFG_LOCATION

#define CFG_LOCATION   0x76 /* Please don't change or if you know what you doing */

Definition at line 7 of file user_config.h.

Referenced by cfg_load(), and cfg_save().

◆ DEFAULT_METER_SERIAL

#define DEFAULT_METER_SERIAL   "9999999"

Definition at line 21 of file user_config.h.

Referenced by cfg_load(), and kmp_request_send().

◆ DEFAULT_SECURITY

#define DEFAULT_SECURITY   0

Definition at line 39 of file user_config.h.

Referenced by cfg_load().

◆ KEY

#define KEY   { 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c }

Definition at line 62 of file user_config.h.

◆ MQTT_BUF_SIZE

#define MQTT_BUF_SIZE   2048

◆ MQTT_CLIENT_ID

#define MQTT_CLIENT_ID   "ML_%08X"

Definition at line 34 of file user_config.h.

Referenced by cfg_load().

◆ MQTT_HOST

#define MQTT_HOST   "loppen.christiania.org"

Definition at line 28 of file user_config.h.

Referenced by cfg_load().

◆ MQTT_KEEPALIVE

#define MQTT_KEEPALIVE   60 /*second*/

Definition at line 32 of file user_config.h.

Referenced by cfg_load().

◆ MQTT_MESSAGE_L

#define MQTT_MESSAGE_L   (512)

Definition at line 26 of file user_config.h.

Referenced by kmp_request_send().

◆ MQTT_PASS

#define MQTT_PASS   "chah5Kai"

Definition at line 36 of file user_config.h.

Referenced by cfg_load().

◆ MQTT_PORT

#define MQTT_PORT   1883

Definition at line 30 of file user_config.h.

Referenced by cfg_load().

◆ MQTT_RECONNECT_TIMEOUT

#define MQTT_RECONNECT_TIMEOUT   5 /*second*/

Definition at line 41 of file user_config.h.

Referenced by mqtt_timer().

◆ MQTT_TOPIC_L

#define MQTT_TOPIC_L   (128)

Definition at line 25 of file user_config.h.

Referenced by en61107_received_task(), kmp_received_task(), and kmp_request_send().

◆ MQTT_USER

#define MQTT_USER   "esp8266"

Definition at line 35 of file user_config.h.

Referenced by cfg_load().

◆ PROTOCOL_NAMEv31

#define PROTOCOL_NAMEv31   /*MQTT version 3.1 compatible with Mosquitto v0.15*/

Definition at line 57 of file user_config.h.

◆ QUEUE_BUFFER_SIZE

#define QUEUE_BUFFER_SIZE   8192

◆ SSID_ESCAPED_LENGTH

#define SSID_ESCAPED_LENGTH   (SSID_LENGTH * 3)

Definition at line 16 of file user_config.h.

◆ SSID_LENGTH

#define SSID_LENGTH   32

Definition at line 15 of file user_config.h.

◆ STA_FALLBACK_PASS

#define STA_FALLBACK_PASS   "w1reless"

Definition at line 69 of file user_config.h.

Referenced by wifi_fallback().

◆ STA_FALLBACK_SSID

#define STA_FALLBACK_SSID   "stofferFon"

Definition at line 68 of file user_config.h.

Referenced by wifi_fallback(), and wifi_scan_done_cb().

◆ STA_PASS

#define STA_PASS   ""

Definition at line 66 of file user_config.h.

Referenced by cfg_load().

◆ STA_SSID

#define STA_SSID   "Loppen Public"

Definition at line 65 of file user_config.h.

Referenced by cfg_load().

◆ STA_TYPE

#define STA_TYPE   AUTH_OPEN

Definition at line 67 of file user_config.h.

Referenced by cfg_load().