Marijn78

Untitled

May 18th, 2021
511
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**************************************************************************
  2. GASLib.h
  3. ***************************************************************************/
  4. #include <WiFi.h>
  5. #include <WiFiClientSecure.h>
  6.  
  7. ////////////////////////////////////////
  8. // ESPHue Class
  9. ////////////////////////////////////////
  10. class GASLib
  11. {
  12. public:
  13.   GASLib(WiFiClient &client, const char *APIKey, const char *host, int port);
  14.   void setAPIKey(const char *APIKey);
  15.   void setHubIP(const char *host);
  16.   void setHubPort(uint8_t port);
  17.   String gasClient(String content, bool redirect);
  18.  
  19. private:
  20.   const char *_host;
  21.   const char *_apiKey;
  22.   int _port;
  23.   WiFiClient *_client;
  24. };
  25.  
RAW Paste Data