Skip to content

Commit 5241a2b

Browse files
committed
Rename ESP to ESP32
1 parent acb880a commit 5241a2b

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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

1010
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.
1111

keywords.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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
1010
Error KEYWORD1
1111

1212
#######################################

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name=Arduino_ESP_OTA
1+
name=Arduino_ESP32_OTA
22
version=0.0.1
33
author=Arduino
44
maintainer=Arduino <[email protected]>
@@ -7,4 +7,4 @@ paragraph=This library allows performing a firmware update on ESP32.
77
category=Communication
88
url=
99
architectures=esp32
10-
includes=Arduino_ESP_OTA.h
10+
includes=Arduino_ESP32_OTA.h

src/Arduino_ESP32_OTA.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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())

src/Arduino_ESP32_OTA.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -30,15 +30,15 @@
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

src/decompress/lzss.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
**************************************************************************************/
2424

2525
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;
2828

2929
int bit_buffer = 0, bit_mask = 128;
3030
unsigned 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;

src/decompress/lzss.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
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_ */

src/tls/amazon_root_ca.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
const 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_ */

0 commit comments

Comments
 (0)