36#ifdef SHELLMINATOR_USE_ARDUINO_SERIAL
42 serialPort = serialPort_p;
48 if( serialPort )
return serialPort ->
available();
55 if( serialPort )
return serialPort ->
read();
62 if( serialPort )
return serialPort ->
peek();
69 if( serialPort )
return serialPort ->
flush();
76 if( serialPort )
return serialPort ->
write( b );
84 if( serialPort )
return serialPort ->
print( b );
91 if( serialPort )
return serialPort ->
print( (
char)c );
98 if( serialPort )
return serialPort ->
print( (
char*)str );
105 if( serialPort )
return serialPort ->
print( (
char*)str );
119#ifdef SHELLMINATOR_USE_ARDUINO_32U4_SERIAL
125 serialPort = serialPort_p;
131 if( serialPort )
return serialPort ->
available();
138 if( serialPort )
return serialPort ->
read();
145 if( serialPort )
return serialPort ->
peek();
152 if( serialPort )
return serialPort ->
flush();
159 if( serialPort )
return serialPort ->
write( b );
167 if( serialPort )
return serialPort ->
print( b );
174 if( serialPort )
return serialPort ->
print( (
char)c );
181 if( serialPort )
return serialPort ->
print( (
char*)str );
188 if( serialPort )
return serialPort ->
print( (
char*)str );
202#ifdef SHELLMINATOR_USE_WIFI_CLIENT
214 if( client )
return client ->
available();
221 if( client )
return client ->
read();
228 if( client )
return client ->
peek();
235 if( client )
return client ->
flush();
241 if( client )
return client ->
write( b );
250 if( client )
return client ->
print( c );
257 if( client )
return client ->
print( b );
264 if( client )
return client ->
print( str );
271 if( client )
return client ->
print( str );
size_t print(char c) override
Print one character to the channel.
void select(Serial_ *serialPort_p)
Select Serial Port.
Serial_ * getSerialObject()
Get the address of the chosen Serial Port.
int read() override
Read one byte form the channel.
int peek() override
Peek the firtst byte from the channel.
void flush() override
Flush the channel.
int available() override
Available bytes in the channel.
size_t write(uint8_t b) override
Write one byte to the channel.
size_t write(uint8_t b) override
Write one byte to the channel.
int peek() override
Peek the firtst byte from the channel.
int read() override
Read one byte form the channel.
int available() override
Available bytes in the channel.
void select(HardwareSerial *serialPort_p)
Select Serial Port.
HardwareSerial * getSerialObject()
Get the address of the chosen Serial Port.
size_t print(char c) override
Print one character to the channel.
void flush() override
Flush the channel.
size_t print(char c) override
Print one character to the channel.
int available() override
Available bytes in the channel.
void flush() override
Flush the channel.
void select(WiFiClient *client_p)
Select WiFi Client.
size_t write(uint8_t b) override
Write one byte to the channel.
int peek() override
Peek the firtst byte from the channel.
int read() override
Read one byte form the channel.
WiFiClient * getClientObject()
Get the address of the chosen WiFi Client.