Skip to content

Commit

Permalink
fix: ESP32 Core 3 compatibility (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlastahajek committed Jun 4, 2024
1 parent f1b10f2 commit 5853057
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
## 3.13.2 [2024-06-04]
### Fixes
- [236](https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/pull/236) - Fix compilation problem on ESP32 Core 3.0.0

## 3.13.1 [2023-03-08]
### Fixes
- [210](https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino/pull/210) - Allow setting of options without previously set connection params
Expand Down
5 changes: 4 additions & 1 deletion src/HTTPService.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
# include <ESP8266HTTPClient.h>
#elif defined(ESP32)
# include <HTTPClient.h>
# include <WiFiClient.h>
# include <WiFiClientSecure.h>
#else
# error "This library currently supports only ESP8266 and ESP32."
#endif
Expand Down Expand Up @@ -131,4 +133,5 @@ friend class Test;
bool isConnected() const { return _httpClient && _httpClient->connected(); }
};

#endif //_HTTP_SERVICE_H_
#endif //_HTTP_SERVICE_H_

0 comments on commit 5853057

Please sign in to comment.