https://github.com/vshymanskyy/streamdebugger
StreamDebugger allows easier debugging of Serial-based communication on Arduino, like AT command interface in ESP8266, SIM800, SIM900, and other GSM modules
https://github.com/vshymanskyy/streamdebugger
Last synced: 9 months ago
JSON representation
StreamDebugger allows easier debugging of Serial-based communication on Arduino, like AT command interface in ESP8266, SIM800, SIM900, and other GSM modules
- Host: GitHub
- URL: https://github.com/vshymanskyy/streamdebugger
- Owner: vshymanskyy
- License: mit
- Created: 2016-12-01T10:48:14.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T20:48:58.000Z (almost 2 years ago)
- Last Synced: 2025-04-10T17:20:40.017Z (9 months ago)
- Language: C++
- Homepage:
- Size: 3.91 KB
- Stars: 39
- Watchers: 4
- Forks: 16
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StreamDebugger
Just allows easier debugging of Serial-based communication on Arduino.
StreamDebugger class is an Arduino Stream, that dumps all data to another Stream for debug purposes.
## Usage:
```cpp
#include
StreamDebugger StreamDbg(Serial1, Serial);
...
void setup() {
// Setup debug stream
Serial.begin(115200);
delay(10);
// Setup data stream
Serial1.begin(9600);
delay(10);
// Now use StreamDbg instead of Serial1
StreamDbg.println("Hello world!");
// The message is sent to Serial1,
// and automatically duplicated to Serial
}
void loop() {
// Start direct-access from Serial to Serial1
StreamDbg.directAccess();
}
```