Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**************************************************************************
- GASLib.h
- ***************************************************************************/
- #include <WiFi.h>
- #include <WiFiClientSecure.h>
- ////////////////////////////////////////
- // ESPHue Class
- ////////////////////////////////////////
- class GASLib
- {
- public:
- GASLib(WiFiClient &client, const char *APIKey, const char *host, int port);
- void setAPIKey(const char *APIKey);
- void setHubIP(const char *host);
- void setHubPort(uint8_t port);
- String gasClient(String content, bool redirect);
- private:
- const char *_host;
- const char *_apiKey;
- int _port;
- WiFiClient *_client;
- };
Advertisement
Add Comment
Please, Sign In to add comment