File tree Expand file tree Collapse file tree 8 files changed +23
-23
lines changed
Expand file tree Collapse file tree 8 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 1- ` Arduino_ESP_OTA `
1+ ` Arduino_ESP32_OTA `
22====================
33
44* Note: This library is currently in [ beta] ( #board-support ) .*
55
6- [ ![ Compile Examples] ( https://github.com/bcmi-labs/Arduino_ESP_OTA /workflows/Compile%20Examples/badge.svg )] ( https://github.com/bcmi-labs/Arduino_ESP_OTA /actions?workflow=Compile+Examples )
7- [ ![ Arduino Lint] ( https://github.com/bcmi-labs/Arduino_ESP_OTA /workflows/Arduino%20Lint/badge.svg )] ( https://github.com/bcmi-labs/Arduino_ESP_OTA /actions?workflow=Arduino+Lint )
8- [ ![ Spell Check] ( https://github.com/bcmi-labs/Arduino_ESP_OTA /workflows/Spell%20Check/badge.svg )] ( https://github.com/bcmi-labs/Arduino_ESP_OTA /actions?workflow=Spell+Check )
6+ [ ![ Compile Examples] ( https://github.com/bcmi-labs/Arduino_ESP32_OTA /workflows/Compile%20Examples/badge.svg )] ( https://github.com/bcmi-labs/Arduino_ESP32_OTA /actions?workflow=Compile+Examples )
7+ [ ![ Arduino Lint] ( https://github.com/bcmi-labs/Arduino_ESP32_OTA /workflows/Arduino%20Lint/badge.svg )] ( https://github.com/bcmi-labs/Arduino_ESP32_OTA /actions?workflow=Arduino+Lint )
8+ [ ![ Spell Check] ( https://github.com/bcmi-labs/Arduino_ESP32_OTA /workflows/Spell%20Check/badge.svg )] ( https://github.com/bcmi-labs/Arduino_ESP32_OTA /actions?workflow=Spell+Check )
99
1010This library allows OTA (Over-The-Air) firmware updates for ESP32 boards. OTA binaries are downloaded via WiFi and stored in the OTA flash partition. After a reset the ESP32 bootloader update the reference to the new firmware.
1111
Original file line number Diff line number Diff line change 11#######################################
2- # Syntax Coloring Map For Arduino_ESP_OTA
2+ # Syntax Coloring Map For Arduino_ESP32_OTA
33#######################################
44
55#######################################
66# Class (KEYWORD1)
77#######################################
88
9- Arduino_ESP_OTA KEYWORD1
9+ Arduino_ESP32_OTA KEYWORD1
1010Error KEYWORD1
1111
1212#######################################
Original file line number Diff line number Diff line change 1- name =Arduino_ESP_OTA
1+ name =Arduino_ESP32_OTA
22version =0.0.1
33author =Arduino
44maintainer =Arduino <info@arduino.cc>
@@ -7,4 +7,4 @@ paragraph=This library allows performing a firmware update on ESP32.
77category =Communication
88url =
99architectures =esp32
10- includes =Arduino_ESP_OTA .h
10+ includes =Arduino_ESP32_OTA .h
Original file line number Diff line number Diff line change 11/*
2- This file is part of Arduino_ESP_OTA .
2+ This file is part of Arduino_ESP32_OTA .
33
44 Copyright 2022 ARDUINO SA (http://www.arduino.cc/)
55
@@ -90,7 +90,7 @@ uint8_t Arduino_ESP32_OTA::read_byte_from_network()
9090 bool is_http_data_timeout = false ;
9191 for (unsigned long const start = millis ();;)
9292 {
93- is_http_data_timeout = (millis () - start) > ARDUINO_ESP_OTA_BINARY_BYTE_RECEIVE_TIMEOUT_ms ;
93+ is_http_data_timeout = (millis () - start) > ARDUINO_ESP32_OTA_BINARY_BYTE_RECEIVE_TIMEOUT_ms ;
9494 if (is_http_data_timeout) {
9595 DEBUG_ERROR (" %s: timeout waiting data" , __FUNCTION__);
9696 return -1 ;
@@ -142,7 +142,7 @@ int Arduino_ESP32_OTA::download(const char * ota_url)
142142 is_http_header_timeout = false ;
143143 for (unsigned long const start = millis (); !is_header_complete;)
144144 {
145- is_http_header_timeout = (millis () - start) > ARDUINO_ESP_OTA_HTTP_HEADER_RECEIVE_TIMEOUT_ms ;
145+ is_http_header_timeout = (millis () - start) > ARDUINO_ESP32_OTA_HTTP_HEADER_RECEIVE_TIMEOUT_ms ;
146146 if (is_http_header_timeout) break ;
147147
148148 if (_client->available ())
Original file line number Diff line number Diff line change 11/*
2- This file is part of Arduino_ESP_OTA .
2+ This file is part of Arduino_ESP32_OTA .
33
44 Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
55
3030 CONSTANTS
3131 ******************************************************************************/
3232
33- static uint32_t const ARDUINO_ESP_OTA_HTTP_HEADER_RECEIVE_TIMEOUT_ms = 10000 ;
34- static uint32_t const ARDUINO_ESP_OTA_BINARY_BYTE_RECEIVE_TIMEOUT_ms = 2000 ;
33+ static uint32_t const ARDUINO_ESP32_OTA_HTTP_HEADER_RECEIVE_TIMEOUT_ms = 10000 ;
34+ static uint32_t const ARDUINO_ESP32_OTA_BINARY_BYTE_RECEIVE_TIMEOUT_ms = 2000 ;
3535
3636/* *****************************************************************************
3737 * TYPEDEF
3838 ******************************************************************************/
3939
40- typedef uint8_t (*ArduinoEspOtaReadByteFuncPointer )(void );
41- typedef void (*ArduinoEspOtaWriteByteFuncPointer )(uint8_t );
40+ typedef uint8_t (*ArduinoEsp32OtaReadByteFuncPointer )(void );
41+ typedef void (*ArduinoEsp32OtaWriteByteFuncPointer )(uint8_t );
4242
4343/* *****************************************************************************
4444 * CLASS DECLARATION
Original file line number Diff line number Diff line change 2323 **************************************************************************************/
2424
2525static size_t LZSS_FILE_SIZE = 0 ;
26- static ArduinoEspOtaReadByteFuncPointer read_byte_fptr = 0 ;
27- static ArduinoEspOtaWriteByteFuncPointer write_byte_fptr = 0 ;
26+ static ArduinoEsp32OtaReadByteFuncPointer read_byte_fptr = 0 ;
27+ static ArduinoEsp32OtaWriteByteFuncPointer write_byte_fptr = 0 ;
2828
2929int bit_buffer = 0 , bit_mask = 128 ;
3030unsigned char buffer[N * 2 ];
@@ -158,7 +158,7 @@ void lzss_decode(void)
158158 PUBLIC FUNCTIONS
159159 **************************************************************************************/
160160
161- int lzss_download (ArduinoEspOtaReadByteFuncPointer read_byte, ArduinoEspOtaWriteByteFuncPointer write_byte, size_t const lzss_file_size)
161+ int lzss_download (ArduinoEsp32OtaReadByteFuncPointer read_byte, ArduinoEsp32OtaWriteByteFuncPointer write_byte, size_t const lzss_file_size)
162162{
163163 read_byte_fptr = read_byte;
164164 write_byte_fptr = write_byte;
Original file line number Diff line number Diff line change 1111 FUNCTION DEFINITION
1212 **************************************************************************************/
1313
14- int lzss_download (ArduinoEspOtaReadByteFuncPointer read_byte , ArduinoEspOtaWriteByteFuncPointer write_byte , size_t const lzss_file_size );
14+ int lzss_download (ArduinoEsp32OtaReadByteFuncPointer read_byte , ArduinoEsp32OtaWriteByteFuncPointer write_byte , size_t const lzss_file_size );
1515
1616#endif /* SSU_LZSS_H_ */
Original file line number Diff line number Diff line change 11/* Certificates from https://www.amazontrust.com/repository/ */
22
3- #ifndef ESP_OTA_AMAZON_ROOT_CA_H_
4- #define ESP_OTA_AMAZON_ROOT_CA_H_
3+ #ifndef ESP32_OTA_AMAZON_ROOT_CA_H_
4+ #define ESP32_OTA_AMAZON_ROOT_CA_H_
55
66const char * amazon_root_ca = \
77/* Amazon Root CA 1 */
@@ -73,4 +73,4 @@ const char* amazon_root_ca = \
7373"AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA==\n" \
7474"-----END CERTIFICATE-----\n" ;
7575
76- #endif /* ESP_OTA_AMAZON_ROOT_CA_H_ */
76+ #endif /* ESP32_OTA_AMAZON_ROOT_CA_H_ */
You can’t perform that action at this time.
0 commit comments