#ifndef TWITTER_H #define TWITTER_H #include #include #if defined(ARDUINO) && ARDUINO > 18 // Arduino 0019 or later #include #endif #include class Twitter { private: uint8_t parseStatus; int statusCode; const char *token; WiFiClient client; public: Twitter(const char *user_and_passwd); bool post(const char *msg); bool checkStatus(Print *debug = NULL); int wait(Print *debug = NULL); int status(void) { return statusCode; } }; #endif //TWITTER_H