1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-26 07:02:15 +03:00

- Make most type definitions public instead of protected, to facilitate use in composition.

- Call ResponseTransmittedHook after every response transmission attempt, instead of after every successful response transmission attempt.

- Improve documentation.

- Finalize README.md.

- Update keywords.txt.
This commit is contained in:
Anders
2020-06-05 21:56:33 +02:00
parent 0516b30655
commit fba4ac15f6
11 changed files with 592 additions and 82 deletions

View File

@ -32,15 +32,13 @@ enum class MeshBackendType
class MeshBackendBase {
protected:
public:
using requestHandlerType = std::function<String(const String &, MeshBackendBase &)> ;
using responseHandlerType = std::function<TransmissionStatusType(const String &, MeshBackendBase &)>;
using networkFilterType = std::function<void(int, MeshBackendBase &)>;
using transmissionOutcomesUpdateHookType = std::function<bool(MeshBackendBase &)>;
public:
MeshBackendBase(const requestHandlerType requestHandler, const responseHandlerType responseHandler, const networkFilterType networkFilter, const MeshBackendType classType);
virtual ~MeshBackendBase();