Use exit reparse mode from Nextion library
This is part of the preparation for esp-idf framework
This commit is contained in:
@@ -100,15 +100,18 @@ uart:
|
|||||||
rx_pin: 17
|
rx_pin: 17
|
||||||
baud_rate: 115200
|
baud_rate: 115200
|
||||||
|
|
||||||
|
external_components:
|
||||||
|
- source: github://pr#3256 # adds esp-idf support to http_request
|
||||||
|
components:
|
||||||
|
- http_request
|
||||||
|
- source: github://pr#5484 # adds exit reparse to Nextion library
|
||||||
|
components:
|
||||||
|
- nextion
|
||||||
|
|
||||||
##### HTTP REQUEST #####
|
##### HTTP REQUEST #####
|
||||||
# Enables http client #
|
# Enables http client #
|
||||||
# for upload_tft. #
|
# for upload_tft. #
|
||||||
# pr#3256 adds esp-idf #
|
|
||||||
########################
|
########################
|
||||||
external_components:
|
|
||||||
- source: github://pr#3256
|
|
||||||
components:
|
|
||||||
- http_request
|
|
||||||
http_request:
|
http_request:
|
||||||
id: httpclient
|
id: httpclient
|
||||||
|
|
||||||
@@ -170,7 +173,7 @@ api:
|
|||||||
id(update_alarm_icon).execute("home.bt_alarm", state.c_str());
|
id(update_alarm_icon).execute("home.bt_alarm", state.c_str());
|
||||||
|
|
||||||
// Is page Alarm visible?
|
// Is page Alarm visible?
|
||||||
if (id(current_page).state == "alarm")
|
if (id(current_page).state == "alarm") // To do: This page constructor should be moved to Blueprint
|
||||||
{ // Update alarm page
|
{ // Update alarm page
|
||||||
id(entity_id) = entity;
|
id(entity_id) = entity;
|
||||||
|
|
||||||
@@ -2466,10 +2469,8 @@ script:
|
|||||||
return upload_end_(false);
|
return upload_end_(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
send_nextion_command("DRAKJHSUYDGBNCJHGJKSHBDN");
|
ESP_LOGD("script.upload_tft.upload_tft", "Setting Nextion protocol reparse mode to passive");
|
||||||
send_nextion_command("recmod=0");
|
id(disp1).set_protocol_reparse_mode(false);
|
||||||
send_nextion_command("recmod=0");
|
|
||||||
send_nextion_command("connect");
|
|
||||||
|
|
||||||
is_updating_ = true;
|
is_updating_ = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user