ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
netservices.h
Go to the documentation of this file.
1
/*
2
netservices.h - network services 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
22
23
#ifndef _NET_SERVICES_H
24
#define _NET_SERVICES_H
25
26
27
class
NetServices
28
{
29
public
:
30
NetServices
();
31
~NetServices
();
32
static
bool
begin
();
33
static
void
end
();
34
static
void
handle
();
35
static
bool
started
()
36
{
37
return
_started;
38
}
39
static
void
start
()
40
{
41
_restart=
true
;
42
Serial.println(
"Restarting netservices"
);
43
}
44
private
:
45
static
bool
_started;
46
static
bool
_restart;
47
};
48
49
#endif //_NET_SERVICES_H
50
NetServices::begin
static bool begin()
Definition:
netservices.cpp:85
NetServices::NetServices
NetServices()
Definition:
netservices.cpp:77
NetServices::started
static bool started()
Definition:
netservices.h:35
NetServices::~NetServices
~NetServices()
Definition:
netservices.cpp:80
NetServices
Definition:
netservices.h:27
NetServices::start
static void start()
Definition:
netservices.h:39
NetServices::end
static void end()
Definition:
netservices.cpp:284
NetServices::handle
static void handle()
Definition:
netservices.cpp:340
esp3d
src
modules
network
netservices.h
Generated by
1.8.17