mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
compiling
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
// StreamUtils - github.com/bblanchon/ArduinoStreamUtils
|
||||
// Copyright Benoit Blanchon 2019-2021
|
||||
// MIT License
|
||||
//
|
||||
// This example shows how to use StringStream
|
||||
|
||||
#include <StreamUtils.h>
|
||||
|
||||
StringStream stream;
|
||||
|
||||
void setup() {
|
||||
// Initialize serial port
|
||||
Serial.begin(9600);
|
||||
while (!Serial)
|
||||
continue;
|
||||
|
||||
stream.print("Temperature = ");
|
||||
stream.print(22.3);
|
||||
stream.print(" °C");
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if (stream.available() > 0) {
|
||||
Serial.print((char)stream.read());
|
||||
}
|
||||
delay(250);
|
||||
}
|
||||
|
||||
/*****************************************************
|
||||
* *
|
||||
* Love this project? *
|
||||
* Star it on GitHub! *
|
||||
* *
|
||||
* .,,. *
|
||||
* ,,:1. *
|
||||
* ,.,:;1 *
|
||||
* .,,,::;: *
|
||||
* ,,,,::;;. *
|
||||
* .,,,:::;;; *
|
||||
* .....,,,,...,.,,,,,,:::,,,,,,,,,,,,, *
|
||||
* ,,,,,,,,,,,:,...,,,,,,:::,,,,:::;;;11l *
|
||||
* .;::::::::,,,,,,,,,,:::::,,::;;;1lt *
|
||||
* .;;;:::,,,,,,,,::::::;:::;;1t: *
|
||||
* :;;:,,,,,,::::::;;;;;;l1 *
|
||||
* ,,,,:::::::;;;;;;l *
|
||||
* .,,,,::::;;;;;;;:::: *
|
||||
* ,,,,,:::;;;;;::,:::1 *
|
||||
* ,,,,,::;;;t1:,,:::::;l *
|
||||
* .,,,,:;;ll ;::::::;;, *
|
||||
* ,,,:;ll. .1:::;;l *
|
||||
* .,:lt, .1;;l: *
|
||||
* *
|
||||
* https://github.com/bblanchon/ArduinoStreamUtils *
|
||||
* *
|
||||
*****************************************************/
|
||||
Reference in New Issue
Block a user