mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 04:57:06 +03:00
24 lines
428 B
C++
24 lines
428 B
C++
#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
|