mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-05-03 03:49:31 +01:00
applied platformio structure
This commit is contained in:
23
lib/spotify/cspot/include/ApResolve.h
Normal file
23
lib/spotify/cspot/include/ApResolve.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <string> // for string
|
||||
#ifdef BELL_ONLY_CJSON
|
||||
#include "cJSON.h"
|
||||
#else
|
||||
#endif
|
||||
|
||||
namespace cspot {
|
||||
class ApResolve {
|
||||
public:
|
||||
ApResolve(std::string apOverride);
|
||||
|
||||
/**
|
||||
* @brief Connects to spotify's servers and returns first valid ap address
|
||||
* @returns std::string Address in form of url:port
|
||||
*/
|
||||
std::string fetchFirstApAddress();
|
||||
|
||||
private:
|
||||
std::string apOverride;
|
||||
};
|
||||
} // namespace cspot
|
||||
Reference in New Issue
Block a user