mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 19:47:02 +03:00
cmake ota leverage esp_http_client
This commit is contained in:
@@ -6,3 +6,4 @@ idf_component_register( SRC_DIRS .
|
||||
|
||||
)
|
||||
|
||||
#add_definitions(-DLOG_LOCAL_LEVEL=ESP_LOG_INFO)
|
||||
@@ -671,7 +671,7 @@ function getMessages() {
|
||||
if (ota_data.hasOwnProperty('ota_dsc') && ota_data['ota_dsc'] != ''){
|
||||
otadsc = ota_data['ota_dsc'];
|
||||
$("span#flash-status").html(otadsc);
|
||||
if (otadsc.match(/Error:/) || otapct > 95) {
|
||||
if (msg.type =="MESSAGING_ERROR" || otapct > 95) {
|
||||
blockFlashButton = false;
|
||||
enableStatusTimer = true;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ function to process requests, decode URLs, serve files, etc. etc.
|
||||
*/
|
||||
|
||||
#include "http_server_handlers.h"
|
||||
#define LOG_LOCAL_LEVEL ESP_LOG_DEBUG
|
||||
|
||||
#include "esp_http_server.h"
|
||||
#include "cmd_system.h"
|
||||
#include <inttypes.h>
|
||||
|
||||
@@ -271,7 +271,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<h2>Firmware URL:</h2>
|
||||
<textarea id="fwurl" maxlength="350"></textarea>
|
||||
<textarea id="fwurl" maxlength="1000"></textarea>
|
||||
<div class="buttons">
|
||||
<input type="button" id="flash" class="btn btn-danger" value="Flash!" /><span id="flash-status"></span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user