ArduinoDumbDisplay v0.9.9-r34
DumbDisplay Arduino Library -- https://github.com/trevorwslee/Arduino-DumbDisplay
 
Loading...
Searching...
No Matches
DDTunnel Class Reference

Base class for DD "tunnel". More...

#include <dumbdisplay.h>

Inheritance diagram for DDTunnel:
DDObject DDBufferedTunnel GpsServiceDDTunnel ImageRetrieverDDTunnel ObjectDetectDemoServiceDDTunnel SimpleToolDDTunnel

Public Member Functions

 DDTunnel (const String &type, int8_t tunnelId, const String &params, const String &endPoint)
 for internal use only
 
void afterConstruct (bool connectNow)
 
const String & getEndpoint ()
 
virtual void release ()
 
virtual void reconnect ()
 
void reconnectTo (const String &endPoint)
 
void reconnectToSetParams (const String &endPoint, const String &params)
 
void reconnectToEndpoint (const DDTunnelEndpoint endpoint)
 reconnect to specified endpoint. See DDTunnelEndpoint.
 
const String & getTunnelId () const
 
virtual void handleInput (const String &data, uint8_t *fbBytes, bool final)
 

Protected Member Functions

bool _pending ()
 
bool _timedOut ()
 
virtual bool _eof (long timeoutMillis)
 
void _writeLine (const String &data)
 
void _writeSound (const String &soundName)
 
void doneHandleInput (bool final)
 

Protected Attributes

String type
 
String tunnelId
 
String endPoint
 
String headers
 
String attachmentId
 
String params
 
unsigned long connectMillis
 

Additional Inherited Members

- Public Attributes inherited from DDObject
int8_t objectType
 object type – DD_OBJECT_TYPE_LAYER or DD_OBJECT_TYPE_TUNNEL
 
String customData
 custom data
 

Detailed Description

Base class for DD "tunnel".

Member Function Documentation

◆ handleInput()

virtual void DDTunnel::handleInput ( const String &  data,
uint8_t *  fbBytes,
bool  final 
)
inlinevirtual

Reimplemented in DDBufferedTunnel.

◆ reconnectToSetParams()

void DDTunnel::reconnectToSetParams ( const String &  endPoint,
const String &  params 
)
inline

reconnect to specified endpoint with parameters

Parameters
endPointendpoint to connect to
paramsparameters to to end point; empty if none