arduino-audio-tools
|
KA-Radio Protocol Server which provides the KARadioProtocol over http to control the audio player provided by the audiotools. More...
#include <KARadioProtocolServer.h>
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} |
AudioPlayerProtocol * | p_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 |
KA-Radio Protocol Server which provides the KARadioProtocol over http to control the audio player provided by the audiotools.