#ifndef MOVEMENTSENSORCODE_CONNECTIVITY_h #define MOVEMENTSENSORCODE_CONNECTIVITY_h #include "Arduino.h" #include #include #include #include #include #include #include #include #include #include // declare the class Connectivity with all functions class Connectivity { public: void connectWiFi(char* ssid, char* pass); void websocketSetup(char* ip, uint16_t port, char* adress); void sendData(float roll, float pitch, float yaw); int httpPost(const char *serverAddress, const char *serverSubPath, const unsigned short serverPort, const char *data, const size_t dataLength, const char *contentType); const char* fetchIPAddress(); private: ESP8266WiFiMulti wifi; WiFiClient wifi_client; // WebSocketsClient webSocket; }; #endif // MOVEMENTSENSORCODE_CONNECTIVITY_h