#ifndef WLAN_H #define WLAN_H #include #include const int SLEEP_TIME = 900000000; const int WIFI_TIMEOUT = 10000; void initial_connection(); void connect_wlan(const int max_retries); void connect_mqtt(PubSubClient &client, const char *device_id, const char **topics, int num_topics); void disconnect_mqtt(PubSubClient &client, const char **topics, int num_topics); void mqtt_transfer(PubSubClient &client, const char *device_id, const char **topics, float *data, int num_topics); void enter_deep_sleep(bool wifi_timeout); #endif /* WLAN_H */