-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug.ino
92 lines (86 loc) · 2.55 KB
/
debug.ino
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
/*
* Copyright (c) 2022 Ronald Leenes
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* @file debug.ino
* @author Ronald Leenes
* @date 28.12.2022
*
* @brief This file contains debug functions
*
* @see http://esp8266thingies.nl
*/
void readVoltage() { // read internal VCC
volts = ESP.getVcc();
debugff("The internal VCC reads %1.2f volts\n", volts / 1000);
}
void PrintConfigData(){
debug("dataSet : ");
debugln(config_data.dataSet);
debug("Admin password : ");
debugln(config_data.adminPassword);
debug("SSID : ");
debugln(config_data.ssid);
debug("password : ");
debugln(config_data.password);
debug("DomoticxIP : ");
debugln(config_data.domoticzIP);
debug("DomoticzPort : ");
debugln(config_data.domoticzPort);
debug("domotixzGasIdx : ");
debugln(config_data.domoticzGasIdx);
debug("domotixzEnergyIdx : ");
debugln(config_data.domoticzEnergyIdx);
debug("mqttIP : ");
debugln(config_data.mqttIP);
debug("mqttPort : ");
debugln(config_data.mqttPort);
debug("mqttUser : ");
debugln(config_data.mqttUser);
debug("mqttPass : ");
debugln(config_data.mqttPass);
debug("mqttTopic : ");
debugln(config_data.mqttTopic);
debug("cfosIP : ");
debugln(config_data.cfosIP);
debug("cfosPort : ");
debugln(config_data.cfosPort);
debug("cfosUsr : ");
debugln(config_data.cfosUsr);
debug("cfosPwd : ");
debugln(config_data.cfosPwd);
debug("cfosID : ");
debugln(config_data.cfosID);
debug("cfosModel : ");
debugln(config_data.cfosModel);
// debug("cfosVA : ");
// debugln(config_data.cfosVA);
// debug("cfosIsVA : ");
// debugln(cfosIsVA);
debug("interval : ");
debugln(config_data.interval);
debug("json : ");
debugln(config_data.domo);
debug("mqtt : ");
debugln(config_data.mqtt);
debug("cfos : ");
debugln(config_data.cfos);
debug("watt : ");
debugln(config_data.watt);
debug("telnet : ");
debugln(config_data.telnet);
}