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 `
2
2
====================
3
3
4
4
* Note: This library is currently in [ beta] ( #board-support ) .*
5
5
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 )
9
9
10
10
This 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.
11
11
Original file line number Diff line number Diff line change 1
1
#######################################
2
- # Syntax Coloring Map For Arduino_ESP_OTA
2
+ # Syntax Coloring Map For Arduino_ESP32_OTA
3
3
#######################################
4
4
5
5
#######################################
6
6
# Class (KEYWORD1)
7
7
#######################################
8
8
9
- Arduino_ESP_OTA KEYWORD1
9
+ Arduino_ESP32_OTA KEYWORD1
10
10
Error KEYWORD1
11
11
12
12
#######################################
Original file line number Diff line number Diff line change 1
- name =Arduino_ESP_OTA
1
+ name =Arduino_ESP32_OTA
2
2
version =0.0.1
3
3
author =Arduino
4
4
maintainer =Arduino <info@arduino.cc>
@@ -7,4 +7,4 @@ paragraph=This library allows performing a firmware update on ESP32.
7
7
category =Communication
8
8
url =
9
9
architectures =esp32
10
- includes =Arduino_ESP_OTA .h
10
+ includes =Arduino_ESP32_OTA .h
Original file line number Diff line number Diff line change 1
1
/*
2
- This file is part of Arduino_ESP_OTA .
2
+ This file is part of Arduino_ESP32_OTA .
3
3
4
4
Copyright 2022 ARDUINO SA (http://www.arduino.cc/)
5
5
@@ -90,7 +90,7 @@ uint8_t Arduino_ESP32_OTA::read_byte_from_network()
90
90
bool is_http_data_timeout = false ;
91
91
for (unsigned long const start = millis ();;)
92
92
{
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 ;
94
94
if (is_http_data_timeout) {
95
95
DEBUG_ERROR (" %s: timeout waiting data" , __FUNCTION__);
96
96
return -1 ;
@@ -142,7 +142,7 @@ int Arduino_ESP32_OTA::download(const char * ota_url)
142
142
is_http_header_timeout = false ;
143
143
for (unsigned long const start = millis (); !is_header_complete;)
144
144
{
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 ;
146
146
if (is_http_header_timeout) break ;
147
147
148
148
if (_client->available ())
Original file line number Diff line number Diff line change 1
1
/*
2
- This file is part of Arduino_ESP_OTA .
2
+ This file is part of Arduino_ESP32_OTA .
3
3
4
4
Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
5
5
30
30
CONSTANTS
31
31
******************************************************************************/
32
32
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 ;
35
35
36
36
/* *****************************************************************************
37
37
* TYPEDEF
38
38
******************************************************************************/
39
39
40
- typedef uint8_t (*ArduinoEspOtaReadByteFuncPointer )(void );
41
- typedef void (*ArduinoEspOtaWriteByteFuncPointer )(uint8_t );
40
+ typedef uint8_t (*ArduinoEsp32OtaReadByteFuncPointer )(void );
41
+ typedef void (*ArduinoEsp32OtaWriteByteFuncPointer )(uint8_t );
42
42
43
43
/* *****************************************************************************
44
44
* CLASS DECLARATION
Original file line number Diff line number Diff line change 23
23
**************************************************************************************/
24
24
25
25
static 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 ;
28
28
29
29
int bit_buffer = 0 , bit_mask = 128 ;
30
30
unsigned char buffer[N * 2 ];
@@ -158,7 +158,7 @@ void lzss_decode(void)
158
158
PUBLIC FUNCTIONS
159
159
**************************************************************************************/
160
160
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)
162
162
{
163
163
read_byte_fptr = read_byte;
164
164
write_byte_fptr = write_byte;
Original file line number Diff line number Diff line change 11
11
FUNCTION DEFINITION
12
12
**************************************************************************************/
13
13
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 );
15
15
16
16
#endif /* SSU_LZSS_H_ */
Original file line number Diff line number Diff line change 1
1
/* Certificates from https://www.amazontrust.com/repository/ */
2
2
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_
5
5
6
6
const char * amazon_root_ca = \
7
7
/* Amazon Root CA 1 */
@@ -73,4 +73,4 @@ const char* amazon_root_ca = \
73
73
"AE47xDqUEpHJWEadIRNyp4iciuRMStuW1KyLa2tJElMzrdfkviT8tQp21KW8EA==\n" \
74
74
"-----END CERTIFICATE-----\n" ;
75
75
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