Skip to content

Commit 2e5aa6a

Browse files
authored
implement connection direct offline mode (#7)
* implement Connection::isConnected() * update changelog
1 parent d9bda4a commit 2e5aa6a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## [Unreleased]
44

5+
### Changed
6+
7+
- Adopt `bool isConnected()` from `Connection` interface ([#7](https://github.com/matth-x/MicroOcppMongoose/pull/7))
8+
59
### Added
610

711
- ~FTP over TLS support ([#3](https://github.com/matth-x/MicroOcppMongoose/pull/3))~ (see [#5](https://github.com/matth-x/MicroOcppMongoose/pull/5))

src/MicroOcppMongooseClient.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// matth-x/MicroOcppMongoose
2-
// Copyright Matthias Akstaller 2019 - 2023
2+
// Copyright Matthias Akstaller 2019 - 2024
33
// GPL-3.0 License (see LICENSE)
44

5-
#ifndef AOCPPMONGOOSECLIENT_H
6-
#define AOCPPMONGOOSECLIENT_H
5+
#ifndef MO_MONGOOSECLIENT_H
6+
#define MO_MONGOOSECLIENT_H
77

88
#if defined(ARDUINO) //fix for conflicting defitions of IPAddress on Arduino
99
#include <Arduino.h>
@@ -108,6 +108,7 @@ class MOcppMongooseClient : public MicroOcpp::Connection {
108108

109109
void setConnectionOpen(bool open);
110110
bool isConnectionOpen() {return connection_established && !connection_closing;}
111+
bool isConnected() {return isConnectionOpen();}
111112
void cleanConnection();
112113

113114
void updateRcvTimer();

0 commit comments

Comments
 (0)