-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
93 lines (84 loc) · 4.83 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* (c) 2019 B. Wilbertz
* This code is licensed under MIT license (see LICENSE.txt for details)
*/
#ifndef CONFIG_H_
#define CONFIG_H_
#include <ESP8266WiFi.h>
#define LEN 1532
#define SERIAL_TIMEOUT 20
//#define OTA_UPDATE 1
//#define OUTPUT_RAW 1
#define OUTPUT_P1 1
//#define USE_TEST_DATA 1
const char* VERSION = "luxp1-0.0.1";
const char* SSID = "YourSSID";
const char* PASSWORD = "YourPassword";
const char* MQTT_SERVER = "XXX.XXX.XXX.XXX";
const char* TOPIC_RAW = "luxp1/meter/raw";
const char* TOPIC_P1 = "luxp1/meter/p1data";
const char* TOPIC_FW = "luxp1/meter/firmware";
const char* TOPIC = "luxp1/meter/telegram";
const char* LAST_WILL_TOPIC = "luxp1/meter/status";
//Key for SAGXXXXXXXXXXXXX:
uint8_t key_SM[] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
#ifdef USE_TEST_DATA
unsigned char test_data[] = { 0xdb, 0x08, 0x53, 0x41, 0x47, 0xff, 0xff, 0xff,
0xff, 0xff, 0x82, 0x02, 0x7a, 0x30, 0x00, 0x00, 0x01, 0xa8, 0x16, 0x09,
0xe5, 0x2b, 0xcd, 0x80, 0x49, 0xd2, 0xee, 0x43, 0x7e, 0x2c, 0xa3, 0x37,
0xb6, 0xf4, 0xa2, 0x52, 0xd6, 0xe3, 0x3d, 0x46, 0xdb, 0x70,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
0x76, 0x86, 0x5e, 0x3f, 0x35, 0x39, 0x34, 0x62, 0x3c, 0x05, 0xe8, 0xb9,
0xa4, 0xc1, 0x65, 0x36, 0x4b, 0xcc, 0x54, 0x44, 0x72, 0xf4, 0x09, 0x29,
0xe0, 0xf8, 0x16, 0xe7, 0xc4, 0xdc, 0xc9, 0x2b, 0x4f, 0xb6, 0x17, 0x0b,
0xbe, 0x58, 0x7a, 0x76, 0x07, 0x29, 0x98, 0x92, 0x99, 0x75, 0x9c, 0xcc,
0xa7, 0x46, 0x19 };
unsigned int test_data_len = 647;
#endif
#endif /* CONFIG_H_ */