Skip to content

Commit 0c5b85e

Browse files
committed
Rename applyCertificate to applyHttpsCertificate and fix example headers
1 parent 0ae2315 commit 0c5b85e

File tree

14 files changed

+38
-61
lines changed

14 files changed

+38
-61
lines changed

examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_HTTP_With_Certificate/Inkplate10_HTTP_With_Certificate.ino renamed to examples/Inkplate10/Advanced/WEB_WiFi/Inkplate10_HTTPS_With_Certificate/Inkplate10_HTTPS_With_Certificate.ino

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
Inkplate10_Download_Files_With_Certificate example for Soldered Inkplate 7
3-
For this example you will need a micro USB cable, Inkplate 7, and an available WiFi connection.
4-
Select "Soldered Inkplate 7" from Tools -> Board menu.
2+
Inkplate10_HTTPS_With_Certificate example for Soldered Inkplate 10
3+
For this example you will need a micro USB cable, Inkplate 10, and an available WiFi connection.
4+
Select "Soldered Inkplate 10" from Tools -> Board menu.
55
66
You can open .bmp files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and
77
24 bit
@@ -27,8 +27,6 @@ const char ssid[] = ""; // Your WiFi SSID
2727
const char *password = ""; // Your WiFi password
2828

2929
//This is the certificate for the website https://varipass.org
30-
//You can find information on how to get the certificate of a website
31-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3230

3331
const char* certificate = \
3432
"-----BEGIN CERTIFICATE-----\n" \
@@ -83,7 +81,7 @@ void setup()
8381
display.partialUpdate();
8482

8583
//Apply the certificate previously defined
86-
display.applyCertificate(certificate);
84+
display.applyHttpsCertificate(certificate);
8785
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
8886
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
8987
{

examples/Inkplate2/Advanced/WEB_WiFi/Inkplate2_HTTP_With_Certificate/Inkplate2_HTTP_With_Certificate.ino renamed to examples/Inkplate2/Advanced/WEB_WiFi/Inkplate2_HTTPS_With_Certificate/Inkplate2_HTTPS_With_Certificate.ino

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Inkplate2_Download_Files_With_Certificate example for Soldered Inkplate 2
2+
Inkplate2_HTTPS_With_Certificate example for Soldered Inkplate 2
33
For this example you will need a micro USB cable, Inkplate 2, and an available WiFi connection.
44
Select "Soldered Inkplate 2" from Tools -> Board menu.
55
@@ -27,9 +27,6 @@ const char ssid[] = ""; // Your WiFi SSID
2727
const char *password = ""; // Your WiFi password
2828

2929
//This is the certificate for the website https://varipass.org
30-
//You can find information on how to get the certificate of a website
31-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
32-
3330
const char* certificate = \
3431
"-----BEGIN CERTIFICATE-----\n" \
3532
"MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw\n" \
@@ -83,7 +80,7 @@ void setup()
8380
display.partialUpdate();
8481

8582
//Apply the certificate previously defined
86-
display.applyCertificate(certificate);
83+
display.applyHttpsCertificate(certificate);
8784
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
8885
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
8986
{

examples/Inkplate4/Advanced/WEB_WiFi/Inkplate4_HTTP_With_Certificate/Inkplate4_HTTP_With_Certificate.ino renamed to examples/Inkplate4/Advanced/WEB_WiFi/Inkplate4_HTTPS_With_Certificate/Inkplate4_HTTPS_With_Certificate.ino

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
Inkplate4_Download_Files_With_Certificate example for Soldered Inkplate 2
3-
For this example you will need a micro USB cable, Inkplate 2, and an available WiFi connection.
4-
Select "Soldered Inkplate 2" from Tools -> Board menu.
2+
Inkplate4_HTTPS_With_Certificate example for Soldered Inkplate 4
3+
For this example you will need a micro USB cable, Inkplate 4, and an available WiFi connection.
4+
Select "Soldered Inkplate 4" from Tools -> Board menu.
55
66
You can open .bmp files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and
77
24 bit
@@ -17,7 +17,7 @@
1717

1818
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
1919
#ifndef ARDUINO_INKPLATE4
20-
#error "Wrong board selection for this example, please select Inkplate 2 in the boards menu."
20+
#error "Wrong board selection for this example, please select Inkplate 4 in the boards menu."
2121
#endif
2222

2323
#include "Inkplate.h" //Include Inkplate library to the sketch
@@ -27,8 +27,6 @@ const char ssid[] = ""; // Your WiFi SSID
2727
const char *password = ""; // Your WiFi password
2828

2929
//This is the certificate for the website https://varipass.org
30-
//You can find information on how to get the certificate of a website
31-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3230

3331
const char* certificate = \
3432
"-----BEGIN CERTIFICATE-----\n" \
@@ -83,7 +81,7 @@ void setup()
8381
display.partialUpdate();
8482

8583
//Apply the certificate previously defined
86-
display.applyCertificate(certificate);
84+
display.applyHttpsCertificate(certificate);
8785
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
8886
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
8987
{

examples/Inkplate4TEMPERA/Advanced/WEB_WiFi/Inkplate4TEMPERA_HTTP_With_Certificate/Inkplate4TEMPERA_HTTP_With_Certificate.ino renamed to examples/Inkplate4TEMPERA/Advanced/WEB_WiFi/Inkplate4TEMPERA_HTTPS_With_Certificate/Inkplate4TEMPERA_HTTPS_With_Certificate.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Inkplate4TEMPERA_Download_Files_With_Certificate example for Soldered Inkplate 4TEMPERA
2+
Inkplate4TEMPERA_HTTPS_With_Certificate example for Soldered Inkplate 4TEMPERA
33
For this example you will need a micro USB cable, Inkplate 4TEMPERA, and an available WiFi connection.
44
Select "Soldered Inkplate 4TEMPERA" from Tools -> Board menu.
55
@@ -27,8 +27,6 @@ const char ssid[] = ""; // Your WiFi SSID
2727
const char *password = ""; // Your WiFi password
2828

2929
//This is the certificate for the website https://varipass.org
30-
//You can find information on how to get the certificate of a website
31-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3230

3331
const char* certificate = \
3432
"-----BEGIN CERTIFICATE-----\n" \
@@ -83,7 +81,7 @@ void setup()
8381
display.partialUpdate();
8482

8583
//Apply the certificate previously defined
86-
display.applyCertificate(certificate);
84+
display.applyHttpsCertificate(certificate);
8785
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
8886
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
8987
{

examples/Inkplate5/Advanced/WEB_WiFi/Inkplate5_HTTP_With_Certificate/Inkplate5_HTTP_With_Certificate.ino renamed to examples/Inkplate5/Advanced/WEB_WiFi/Inkplate5_HTTPS_With_Certificate/Inkplate5_HTTPS_With_Certificate.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Inkplate5_Download_Files_With_Certificate example for Soldered Inkplate 5
2+
Inkplate5_HTTPS_With_Certificate example for Soldered Inkplate 5
33
For this example you will need a micro USB cable, Inkplate 5, and an available WiFi connection.
44
Select "Soldered Inkplate 5" from Tools -> Board menu.
55
@@ -27,8 +27,6 @@ const char ssid[] = ""; // Your WiFi SSID
2727
const char *password = ""; // Your WiFi password
2828

2929
//This is the certificate for the website https://varipass.org
30-
//You can find information on how to get the certificate of a website
31-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3230

3331
const char* certificate = \
3432
"-----BEGIN CERTIFICATE-----\n" \
@@ -83,7 +81,7 @@ void setup()
8381
display.partialUpdate();
8482

8583
//Apply the certificate previously defined
86-
display.applyCertificate(certificate);
84+
display.applyHttpsCertificate(certificate);
8785
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
8886
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
8987
{

examples/Inkplate5V2/Advanced/WEB_WiFi/Inkplate5V2_HTTP_With_Certificate/Inkplate5V2_HTTP_With_Certificate.ino renamed to examples/Inkplate5V2/Advanced/WEB_WiFi/Inkplate5V2_HTTPS_With_Certificate/Inkplate5V2_HTTPS_With_Certificate.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Inkplate6_Download_Files_With_Certificate example for Soldered Inkplate 5V2
2+
Inkplate5V2_HTTPS_With_Certificate example for Soldered Inkplate 5V2
33
For this example you will need a micro USB cable, Inkplate 5V2, and an available WiFi connection.
44
Select "Soldered Inkplate 5V2" from Tools -> Board menu.
55
@@ -27,8 +27,6 @@ const char ssid[] = ""; // Your WiFi SSID
2727
const char *password = ""; // Your WiFi password
2828

2929
//This is the certificate for the website https://varipass.org
30-
//You can find information on how to get the certificate of a website
31-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3230

3331
const char* certificate = \
3432
"-----BEGIN CERTIFICATE-----\n" \
@@ -83,7 +81,7 @@ void setup()
8381
display.partialUpdate();
8482

8583
//Apply the certificate previously defined
86-
display.applyCertificate(certificate);
84+
display.applyHttpsCertificate(certificate);
8785
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
8886
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
8987
{

examples/Inkplate6/Advanced/WEB_WiFi/Inkplate6_HTTP_With_Certificate/Inkplate6_HTTP_With_Certificate.ino renamed to examples/Inkplate6/Advanced/WEB_WiFi/Inkplate6_HTTPS_With_Certificate/Inkplate6_HTTPS_With_Certificate.ino

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Inkplate6_Download_Files_With_Certificate example for Soldered Inkplate 6
2+
Inkplate6_HTTPS_With_Certificate example for Soldered Inkplate 6
33
For this example you will need a micro USB cable, Inkplate 6, and an available WiFi connection.
44
Select "Soldered Inkplate 6" from Tools -> Board menu.
55
Don't have "Soldered Inkplate 6" option? Follow our tutorial and add it:
@@ -30,8 +30,6 @@ const char ssid[] = ""; // Your WiFi SSID
3030
const char *password = ""; // Your WiFi password
3131

3232
//This is the certificate for the website https://varipass.org
33-
//You can find information on how to get the certificate of a website
34-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3533

3634
const char* certificate = \
3735
"-----BEGIN CERTIFICATE-----\n" \
@@ -86,7 +84,7 @@ void setup()
8684
display.partialUpdate();
8785

8886
//Apply the certificate previously defined
89-
display.applyCertificate(certificate);
87+
display.applyHttpsCertificate(certificate);
9088
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
9189
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
9290
{

examples/Inkplate6COLOR/Advanced/WEB_WiFi/Inkplate6COLOR_HTTP_With_Certificate/Inkplate6COLOR_HTTP_With_Certificate.ino renamed to examples/Inkplate6COLOR/Advanced/WEB_WiFi/Inkplate6COLOR_HTTPS_With_Certificate/Inkplate6COLOR_HTTPS_With_Certificate.ino

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
2-
Inkplate6COLOR_Download_Files_With_Certificate example for Soldered Inkplate 6 COLOR
3-
For this example you will need a micro USB cable, Inkplate 6, and an available WiFi connection.
4-
Select "Soldered Inkplate 6" from Tools -> Board menu.
5-
Don't have "Soldered Inkplate 6" option? Follow our tutorial and add it:
2+
Inkplate6COLOR_HTTPS_With_Certificate example for Soldered Inkplate 6 COLOR
3+
For this example you will need a micro USB cable, Inkplate 6COLOR, and an available WiFi connection.
4+
Select "Soldered Inkplate 6COLOR" from Tools -> Board menu.
5+
Don't have "Soldered Inkplate 6COLOR" option? Follow our tutorial and add it:
66
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
77
88
You can open .bmp files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and
9-
24 bit AND have resoluton smaller than 800x600 or otherwise it won't fit on screen.
9+
24 bit.
1010
1111
This example will show you how you can download a .bmp file (picture) from the web securely by providing a
1212
certificate for the website that will be validated upon conncection and
@@ -29,8 +29,6 @@ const char ssid[] = ""; // Your WiFi SSID
2929
const char *password = ""; // Your WiFi password
3030

3131
//This is the certificate for the website https://varipass.org
32-
//You can find information on how to get the certificate of a website
33-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3432

3533
const char* certificate = \
3634
"-----BEGIN CERTIFICATE-----\n" \
@@ -85,7 +83,7 @@ void setup()
8583
display.partialUpdate();
8684

8785
//Apply the certificate previously defined
88-
display.applyCertificate(certificate);
86+
display.applyHttpsCertificate(certificate);
8987
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
9088
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
9189
{

examples/Inkplate6FLICK/Advanced/WEB_WiFi/Inkplate6FLICK_HTTP_With_Certificate/Inkplate6FLICK_HTTP_With_Certificate.ino renamed to examples/Inkplate6FLICK/Advanced/WEB_WiFi/Inkplate6FLICK_HTTPS_With_Certificate/Inkplate6FLICK_HTTPS_With_Certificate.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
2-
Inkplate6FLICK_Download_Files_With_Certificate example for Soldered Inkplate 6FLICK
2+
Inkplate6FLICK_HTTPS_With_Certificate example for Soldered Inkplate 6FLICK
33
For this example you will need a micro USB cable, Inkplate 6FLICK, and an available WiFi connection.
44
Select "Soldered Inkplate 6FLICK" from Tools -> Board menu.
55
Don't have "Soldered Inkplate 6FLICK" option? Follow our tutorial and add it:
66
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
77
88
You can open .bmp files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and
9-
24 bit AND have resoluton smaller than 800x600 or otherwise it won't fit on screen.
9+
24 bit.
1010
1111
This example will show you how you can download a .bmp file (picture) from the web securely by providing a
1212
certificate for the website that will be validated upon conncection and
@@ -29,8 +29,6 @@ const char ssid[] = ""; // Your WiFi SSID
2929
const char *password = ""; // Your WiFi password
3030

3131
//This is the certificate for the website https://varipass.org
32-
//You can find information on how to get the certificate of a website
33-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3432

3533
const char* certificate = \
3634
"-----BEGIN CERTIFICATE-----\n" \
@@ -85,7 +83,7 @@ void setup()
8583
display.partialUpdate();
8684

8785
//Apply the certificate previously defined
88-
display.applyCertificate(certificate);
86+
display.applyHttpsCertificate(certificate);
8987
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
9088
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
9189
{

examples/Inkplate6PLUS/Advanced/WEB_WiFi/Inkplate6PLUS_HTTP_With_Certificate/Inkplate6PLUS_HTTP_With_Certificate.ino renamed to examples/Inkplate6PLUS/Advanced/WEB_WiFi/Inkplate6PLUS_HTTPS_With_Certificate/Inkplate6PLUS_HTTPS_With_Certificate.ino

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
2-
Inkplate6PLUS_Download_Files_With_Certificate example for Soldered Inkplate 6PLUS
2+
Inkplate6PLUS_HTTPS_With_Certificate example for Soldered Inkplate 6PLUS
33
For this example you will need a micro USB cable, Inkplate 6PLUS, and an available WiFi connection.
44
Select "Soldered Inkplate 6PLUS" from Tools -> Board menu.
55
Don't have "Soldered Inkplate 6PLUS" option? Follow our tutorial and add it:
66
https://soldered.com/learn/add-inkplate-6-board-definition-to-arduino-ide/
77
88
You can open .bmp files that have color depth of 1 bit (BW bitmap), 4 bit, 8 bit and
9-
24 bit AND have resoluton smaller than 800x600 or otherwise it won't fit on screen.
9+
24 bit.
1010
1111
This example will show you how you can download a .bmp file (picture) from the web securely by providing a
1212
certificate for the website that will be validated upon conncection and
@@ -29,8 +29,6 @@ const char ssid[] = ""; // Your WiFi SSID
2929
const char *password = ""; // Your WiFi password
3030

3131
//This is the certificate for the website https://varipass.org
32-
//You can find information on how to get the certificate of a website
33-
//as well as how to format it here: https://randomnerdtutorials.com/esp32-https-requests/
3432

3533
const char* certificate = \
3634
"-----BEGIN CERTIFICATE-----\n" \
@@ -85,7 +83,7 @@ void setup()
8583
display.partialUpdate();
8684

8785
//Apply the certificate previously defined
88-
display.applyCertificate(certificate);
86+
display.applyHttpsCertificate(certificate);
8987
//Here we will draw the image using a valid certificate. Photo taken by: Roberto Fernandez
9088
if (!display.drawImage("https://varipass.org/neowise_mono.bmp", 0, 0, false, true))
9189
{

0 commit comments

Comments
 (0)