Skip to content

Commit

Permalink
Fix #14, update dependencies
Browse files Browse the repository at this point in the history
Switch to HTTP/1.0 as Graph API uses now chunked transfer encoding
which is a HTTP/1.1 feature that isn't supported by ESP32 HttpClient.
  • Loading branch information
nmtoblum committed Mar 22, 2021
1 parent 0a0b01f commit e642288
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ upload_speed=921600
build_flags=
-DDATAPIN=13
-DNUMLEDS=16
; -DCORE_DEBUG_LEVEL=5
lib_deps=
[email protected].0
ArduinoJson@6.13.0
WS2812FX@1.2.2
[email protected].3
ArduinoJson@6.17.3
WS2812FX@1.3.1

[env:esp32doit-devkit-v1]
board=esp32doit-devkit-v1
Expand Down
1 change: 1 addition & 0 deletions src/request_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ boolean requestJsonApi(JsonDocument& doc, String url, String payload = "", size_
if (https.begin(*client, url)) { // HTTPS
https.setConnectTimeout(10000);
https.setTimeout(10000);
https.useHTTP10(true);

// Send auth header?
if (sendAuth) {
Expand Down

0 comments on commit e642288

Please sign in to comment.