arduino-audio-tools
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
AudioPlayerProtocolServer Class Reference
Inheritance diagram for AudioPlayerProtocolServer:
KARadioProtocolServer

Public Member Functions

 AudioPlayerProtocolServer ()=default
 Empty constructor: call setPlayer to define the player.
 
 AudioPlayerProtocolServer (AudioPlayerProtocol &protocol, AudioPlayer &player, int port=80, const char *ssid=nullptr, const char *pwd=nullptr)
 Default constructor.
 
bool begin ()
 
void copy ()
 
void loop ()
 
void setBufferSize (int size)
 Defines the buffer size that is made available for the http reply.
 
void setPassword (const char *password)
 
void setPlayer (AudioPlayer &player)
 Defines the player.
 
void setPort (int port)
 
void setProtocol (AudioPlayerProtocol &protocol)
 
void setSSID (const char *ssid)
 
void setSSID (const char *ssid, const char *password)
 

Static Protected Member Functions

static void parse (HttpServer *server, const char *requestPath, HttpRequestHandlerLine *hl)
 

Protected Attributes

int buffer_size = 512
 
Vector< void * > context {1}
 
AudioPlayerProtocolp_protocol
 
const char * password = nullptr
 
int port = 80
 
QueueStream< uint8_t > queueStream {ringBuffer}
 
RingBuffer< uint8_t > ringBuffer {0}
 
HttpServer server {wifi}
 
const char * ssid = nullptr
 
WiFiServer wifi
 

The documentation for this class was generated from the following file: