mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
29 lines
498 B
C++
29 lines
498 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "HTTPClient.h"
|
|
#ifdef BELL_ONLY_CJSON
|
|
#include "cJSON.h"
|
|
#else
|
|
#include "nlohmann/json.hpp"
|
|
#endif
|
|
|
|
namespace cspot {
|
|
class ApResolve {
|
|
private:
|
|
std::string apOverride;
|
|
|
|
public:
|
|
ApResolve(std::string apOverride);
|
|
|
|
/**
|
|
* @brief Connects to spotify's servers and returns first valid ap address
|
|
*
|
|
* @return std::string Address in form of url:port
|
|
*/
|
|
std::string fetchFirstApAddress();
|
|
};
|
|
} // namespace cspot
|