mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-05-27 21:29:21 +03:00
first
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// StreamUtils - github.com/bblanchon/ArduinoStreamUtils
|
||||
// Copyright Benoit Blanchon 2019-2021
|
||||
// MIT License
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../Policies/ReadSpyingPolicy.hpp"
|
||||
#include "../Policies/WriteSpyingPolicy.hpp"
|
||||
#include "StreamProxy.hpp"
|
||||
|
||||
namespace StreamUtils {
|
||||
|
||||
struct SpyingStream : StreamProxy<ReadSpyingPolicy, WriteSpyingPolicy> {
|
||||
SpyingStream(Stream &target, Print &log)
|
||||
: StreamProxy<ReadSpyingPolicy, WriteSpyingPolicy>(
|
||||
target, ReadSpyingPolicy{log}, WriteSpyingPolicy{log}) {}
|
||||
};
|
||||
|
||||
} // namespace StreamUtils
|
||||
Reference in New Issue
Block a user