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

Helper class for constructing "tunnel" endpoint, if the endpoint is not a simple URL. Can be used for DDTunnel::reconnectToEndpoint() More...

#include <dumbdisplay.h>

Public Member Functions

 DDTunnelEndpoint (const String &endPoint)
 
void resetEndpoint (const String &endPoint)
 reset the endpoint
 
void resetSoundAttachment (const String &soundName)
 
void resetHeaders ()
 reset headers
 
void resetParams ()
 reset params (to the endpoint query string)
 
void addParam (const String &param)
 add param (to the endpoint query string)
 
void addNamedParam (const String &paramName, const String &paramValue)
 add named param (to the endpoint query string)
 
void addHeader (const String &headerKey, const String &headerValue)
 add header to the request
 

Public Attributes

String endPoint
 
String headers
 
String attachmentId
 
String params
 

Detailed Description

Helper class for constructing "tunnel" endpoint, if the endpoint is not a simple URL. Can be used for DDTunnel::reconnectToEndpoint()

Member Function Documentation

◆ resetSoundAttachment()

void DDTunnelEndpoint::resetSoundAttachment ( const String &  soundName)
inline

reset the sound (saved or cached) to be attached with the request

Parameters
soundNamename of the sound to be attached (saved or cached), empty means no sound attachment