ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
debug_esp3d.cpp
Go to the documentation of this file.
1
/*
2
debug_esp3d.cpp - debug esp3d functions class
3
4
Copyright (c) 2014 Luc Lebosse. All rights reserved.
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#include "../include/esp3d_config.h"
22
#if defined(ESP_DEBUG_FEATURE)
23
24
#if defined(ARDUINO_ARCH_ESP8266)
25
const
char
* pathToFileName(
const
char
* path)
26
{
27
size_t
i = 0;
28
size_t
pos = 0;
29
char
* p = (
char
*)path;
30
while
(*p) {
31
i++;
32
if
(*p ==
'/'
|| *p ==
'\\'
) {
33
pos = i;
34
}
35
p++;
36
}
37
return
path+pos;
38
}
39
#endif //ARDUINO_ARCH_ESP8266
40
41
//Telnet
42
#if ESP_DEBUG_FEATURE == DEBUG_OUTPUT_TELNET
43
Telnet_Server
telnet_debug;
44
#endif // ESP_DEBUG_FEATURE == DEBUG_OUTPUT_TELNET
45
46
//Websocket
47
#if ESP_DEBUG_FEATURE == DEBUG_OUTPUT_WEBSOCKET
48
WebSocket_Server
websocket_debug;
49
#endif // ESP_DEBUG_FEATURE == DEBUG_OUTPUT_WEBSOCKET
50
#endif //ESP_DEBUG_FEATURE
WebSocket_Server
Definition:
websocket_server.h:30
Telnet_Server
Definition:
telnet_server.h:30
esp3d
src
core
debug_esp3d.cpp
Generated by
1.8.17