arduino-audio-tools
AbstractURLStream.h
1 #pragma once
2 
3 namespace audio_tools {
4 
12  public:
13  // executes the URL request
14  virtual bool begin(const char* urlStr, const char* acceptMime = nullptr,
15  MethodID action = GET, const char* reqMime = "",
16  const char* reqData = "") = 0;
17  // ends the request
18  virtual void end() override = 0;
20  virtual HttpRequest& httpRequest() = 0;
21  // only the ICYStream supports this
22  virtual bool setMetadataCallback(void (*fn)(MetaDataType info,
23  const char* str, int len)) {
24  return false;
25  }
27  int availableForWrite() override { return 0; }
28 
30  virtual void setClient(Client& clientPar) = 0;
31 
33  virtual void setSSID(const char* ssid) = 0;
34 
36  virtual void setPassword(const char* password) = 0;
37 
40  virtual void setPowerSave(bool ps) = 0;
41 
42 };
43 
44 } // namespace audio_tools
Abstract Base class for all URLStream implementations.
Definition: AbstractURLStream.h:11
virtual void setPassword(const char *password)=0
Sets the password that will be used for logging in (when calling begin)
virtual void setPowerSave(bool ps)=0
virtual void setSSID(const char *ssid)=0
Sets the ssid that will be used for logging in (when calling begin)
int availableForWrite() override
Writes are not supported.
Definition: AbstractURLStream.h:27
virtual void setClient(Client &clientPar)=0
(Re-)defines the client
virtual HttpRequest & httpRequest()=0
provides access to the HttpRequest
Base class for all Audio Streams. It support the boolean operator to test if the object is ready with...
Definition: AudioStreams.h:24
Definition: NoArduino.h:138
Simple API to process get, put, post, del http requests I tried to use Arduino HttpClient,...
Definition: HttpRequest.h:26
MetaDataType
Type of meta info.
Definition: AbstractMetaData.h:11
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition: AnalogAudio.h:10