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
KARadioProtocolServer Class Reference

KA-Radio Protocol Server which provides the KARadioProtocol over http to control the audio player provided by the audiotools. More...

#include <KARadioProtocolServer.h>

Inheritance diagram for KARadioProtocolServer:
AudioPlayerProtocolServer

Public Member Functions

 KARadioProtocolServer ()=default
 Empty constructor: call setPlayer to define the player.
 
 KARadioProtocolServer (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
 
KARadioProtocol protocol
 
QueueStream< uint8_t > queueStream {ringBuffer}
 
RingBuffer< uint8_t > ringBuffer {0}
 
HttpServer server {wifi}
 
const char * ssid = nullptr
 
WiFiServer wifi
 

Detailed Description

KA-Radio Protocol Server which provides the KARadioProtocol over http to control the audio player provided by the audiotools.

Author
Phil Schatzmann

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