Demo of how to use CC1200 radios to send data.
SerialStream< SerialClass > Class Template Reference
SerialStream Bringing MBed serial ports back like it's 1999... More...
#include <SerialStream.h>
Public Member Functions | |
SerialStream (SerialClass &_serialClass, const char *name=nullptr) | |
Create a SerialStream from a serial port. |
Detailed Description
template<class SerialClass>
class SerialStream< SerialClass >
SerialStream Bringing MBed serial ports back like it's 1999...
or at least 2019.
This class adapts an MBed 6.0 serial port class into a Stream instance. This lets you do two useful things with it:
- Call printf() and scanf() on it
- Pass it to code that expects a Stream to print things on.
Definition at line 18 of file SerialStream.h.
Constructor & Destructor Documentation
SerialStream | ( | SerialClass & | _serialClass, |
const char * | name = nullptr |
||
) |
Create a SerialStream from a serial port.
- Parameters:
-
_serialClass BufferedSerial or UnbufferedSerial instance name The name of the stream associated with this serial port (optional)
Definition at line 29 of file SerialStream.h.
Generated on Tue Jul 19 2022 21:31:07 by 1.7.2