Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Caffreyfans committed Apr 15, 2020
1 parent 562d71d commit 7e3b4b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -28,7 +28,9 @@ deploy:
file_glob: true
api_key:
secure: q+V3ixBe1GJUwkX7dkjek/X8H9lCjkLVgh+BeXD2rOIJe2naB3u4q9LHWFElfh0za+9Bcz1dqyRVcLlbjKpZI0yXcVoNhvd8rlmiFs9Y8l47citaiB+c0vZuZ0afIEBnDnzgDeXSWyF97LmUy9z43A/JkjtyWFxxnVNLjLD2QrqPyFRaVDim8ihXZsxZLgEuHTd1a8nLmaUj1tfWK1A0Ozy5vQqc7PWl6cUj6t6DZw5+FmTAr9j6VYfQvLVfqPlAPicRq4Nn+XqU+Uqlem8f4nE7G301OCw2Kaa6o0tPAAfZ2XF30vu//CE22DudU2yqA2d0utHgDggDACRtwmA9+Fel2Cd7owGxUoAIIBsTEnQEiGMLrYgSOD2NVSfl/By4H2/zzw0ULJyUWGESJymN+H/CJbl1UmPxZw5QemUh8S6KvbzGL379cJYLOlhoupaH7lxH/ImLu3VL5ksSNH2elSBvMu7mFP7SAVe9M6SO+d8HfSW7jKm0H1M9sVoddAzbVpzSxt1qiJTccmn66O7ANHeSYq8HHOeDiewe+Oy2vk5iZomiokBg1ymlcw9ed3GlgB3HG1/DZk90wVgzBMvduG9hcZbf8yJS5kAx/fbU9ISd22KBuWEukOkDCorwbbKUVTpFYdvjnDvkkc0KAiKwBcqfO8qrsfG9cC4F5jBEeQA=
file: IRbaby.zip
file:
- IRbaby.zip
- IRbaby.bin
skip_cleanup: true
on:
tags: true
4 changes: 1 addition & 3 deletions src/IRbaby.cpp
Expand Up @@ -103,7 +103,6 @@ void registerDevice() {
String head = "http://api.ipify.org/?format=json";
http.begin(head);
int http_code = http.GET();
DEBUGF("[HTTP] GET... code: %d\n", http_code);
String ip = http.getString();
StaticJsonDocument<128> ip_json;
deserializeJson(ip_json, ip);
Expand All @@ -124,6 +123,5 @@ void registerDevice() {
String body = body_json.as<String>();
DEBUGLN(body);
http_code = http2.PUT(body);
http2.end();
DEBUGF("[HTTP] PUT... code: %d\n", http_code);
http2.end();
}
4 changes: 2 additions & 2 deletions src/IRbabyOTA.cpp
Expand Up @@ -31,14 +31,14 @@ void otaUpdate(String url)
{

WiFiClient client;

BearSSL::WiFiClientSecure update_client;
// Add optional callback notifiers
ESPhttpUpdate.onStart(update_started);
ESPhttpUpdate.onEnd(update_finished);
ESPhttpUpdate.onProgress(update_progress);
ESPhttpUpdate.onError(update_error);

t_httpUpdate_return ret = ESPhttpUpdate.update(client, url);
t_httpUpdate_return ret = ESPhttpUpdate.update(update_client, url);

switch (ret)
{
Expand Down

0 comments on commit 7e3b4b6

Please sign in to comment.