Prusa MINI Firmware overview
WebSocketSerial Class Reference

#include <WebSocketSerial.h>

Inheritance diagram for WebSocketSerial:
Collaboration diagram for WebSocketSerial:

Public Member Functions

 WebSocketSerial ()
 
void begin (const long)
 
void end ()
 
int available ()
 
int peek ()
 
int read ()
 
void flush ()
 
void flushTX ()
 
size_t write (const uint8_t c)
 
size_t write (const uint8_t *buffer, size_t size)
 
 operator bool ()
 
- Public Member Functions inherited from Stream
 Stream ()
 
void setTimeout (unsigned long timeout)
 
unsigned long getTimeout (void)
 
bool find (const char *target)
 
bool find (const uint8_t *target)
 
bool find (const char *target, size_t length)
 
bool find (const uint8_t *target, size_t length)
 
bool find (char target)
 
bool findUntil (const char *target, const char *terminator)
 
bool findUntil (const uint8_t *target, const char *terminator)
 
bool findUntil (const char *target, size_t targetLen, const char *terminate, size_t termLen)
 
bool findUntil (const uint8_t *target, size_t targetLen, const char *terminate, size_t termLen)
 
long parseInt (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
float parseFloat (LookaheadMode lookahead=SKIP_ALL, char ignore=NO_IGNORE_CHAR)
 
virtual size_t readBytes (char *buffer, size_t length)
 
size_t readBytes (uint8_t *buffer, size_t length)
 
virtual size_t readBytesUntil (char terminator, char *buffer, size_t length)
 
size_t readBytesUntil (char terminator, uint8_t *buffer, size_t length)
 
String readString ()
 
String readStringUntil (char terminator)
 
- Public Member Functions inherited from Print
 Print ()
 
int getWriteError ()
 
void clearWriteError ()
 
size_t write (const char *str)
 
size_t write (const char *buffer, size_t size)
 
size_t print (const __FlashStringHelper *)
 
size_t print (const String &)
 
size_t print (const char[])
 
size_t print (char)
 
size_t print (unsigned char, int=DEC)
 
size_t print (int, int=DEC)
 
size_t print (unsigned int, int=DEC)
 
size_t print (long, int=DEC)
 
size_t print (unsigned long, int=DEC)
 
size_t print (double, int=2)
 
size_t print (const Printable &)
 
size_t println (const __FlashStringHelper *)
 
size_t println (const String &s)
 
size_t println (const char[])
 
size_t println (char)
 
size_t println (unsigned char, int=DEC)
 
size_t println (int, int=DEC)
 
size_t println (unsigned int, int=DEC)
 
size_t println (long, int=DEC)
 
size_t println (unsigned long, int=DEC)
 
size_t println (double, int=2)
 
size_t println (const Printable &)
 
size_t println (void)
 
void println (int64_t, uint8_t=DEC)
 
void print (int64_t, uint8_t=DEC)
 
void println (uint64_t, uint8_t=DEC)
 
void print (uint64_t, uint8_t=DEC)
 

Additional Inherited Members

- Protected Member Functions inherited from Stream
int timedRead ()
 
int timedPeek ()
 
int peekNextDigit (LookaheadMode lookahead, bool detectDecimal)
 
long parseInt (char ignore)
 
float parseFloat (char ignore)
 
int findMulti (struct MultiTarget *targets, int tCount)
 
- Protected Member Functions inherited from Print
void setWriteError (int err=1)
 
- Protected Attributes inherited from Stream
unsigned long _timeout
 
unsigned long _startMillis
 

Constructor & Destructor Documentation

◆ WebSocketSerial()

WebSocketSerial::WebSocketSerial ( )

Member Function Documentation

◆ begin()

void WebSocketSerial::begin ( const long  )

◆ end()

void WebSocketSerial::end ( )

◆ available()

int WebSocketSerial::available ( )
virtual

Implements Stream.

◆ peek()

int WebSocketSerial::peek ( )
virtual

Implements Stream.

◆ read()

int WebSocketSerial::read ( )
virtual

Implements Stream.

◆ flush()

void WebSocketSerial::flush ( )
virtual

Implements Stream.

◆ flushTX()

void WebSocketSerial::flushTX ( )

◆ write() [1/2]

size_t WebSocketSerial::write ( const uint8_t  c)
virtual

Implements Print.

◆ write() [2/2]

size_t WebSocketSerial::write ( const uint8_t buffer,
size_t  size 
)
virtual

Reimplemented from Print.

◆ operator bool()

WebSocketSerial::operator bool ( )
73 { return true; }