Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sergey Remizov
BluetoothHeater
Commits
b1cee63e
Commit
b1cee63e
authored
5 years ago
by
Ray Jones
Browse files
Options
Download
Email Patches
Plain Diff
Added ABTelnetSpy derived class modules
parent
4138d0b2
DS18B20_trials
JustinMods
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Afterburner.cpp
+1
-1
src/Afterburner.cpp
src/Utility/ABTelnetSpy.cpp
+43
-0
src/Utility/ABTelnetSpy.cpp
src/Utility/ABTelnetSpy.h
+38
-0
src/Utility/ABTelnetSpy.h
with
82 additions
and
1 deletion
+82
-1
src/Afterburner.cpp
View file @
b1cee63e
...
...
@@ -125,7 +125,7 @@
const
int
FirmwareRevision
=
31
;
const
int
FirmwareSubRevision
=
6
;
const
char
*
FirmwareDate
=
"
18
Oct 2019"
;
const
char
*
FirmwareDate
=
"
27
Oct 2019"
;
#ifdef ESP32
...
...
This diff is collapsed.
Click to expand it.
src/Utility/ABTelnetSpy.cpp
0 → 100644
View file @
b1cee63e
/*
* This file is part of the "bluetoothheater" distribution
* (https://gitlab.com/mrjones.id.au/bluetoothheater)
*
* Copyright (C) 2018 Ray Jones <ray@mrjones.id.au>
* Copyright (C) 2018 James Clark
*
* 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 <https://www.gnu.org/licenses/>.
*
*/
#include "ABTelnetSpy.h"
ABTelnetSpy
::
ABTelnetSpy
()
:
TelnetSpy
()
{
_enabled
=
true
;
}
size_t
ABTelnetSpy
::
write
(
uint8_t
val
)
{
if
(
_enabled
)
{
return
TelnetSpy
::
write
(
val
);
}
return
0
;
}
void
ABTelnetSpy
::
enable
(
bool
state
)
{
_enabled
=
state
;
}
This diff is collapsed.
Click to expand it.
src/Utility/ABTelnetSpy.h
0 → 100644
View file @
b1cee63e
/*
* This file is part of the "bluetoothheater" distribution
* (https://gitlab.com/mrjones.id.au/bluetoothheater)
*
* Copyright (C) 2018 Ray Jones <ray@mrjones.id.au>
* Copyright (C) 2018 James Clark
*
* 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 <https://www.gnu.org/licenses/>.
*
*/
#include "../../lib/TelnetSpy/TelnetSpy.h"
#ifndef __ABTELNETSPY_H__
#define __ABTELNETSPY_H__
class
ABTelnetSpy
:
public
TelnetSpy
{
public:
ABTelnetSpy
();
size_t
write
(
uint8_t
)
override
;
void
enable
(
bool
);
protected:
bool
_enabled
;
};
#endif // __ABTELNETSPY_H__
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help