Inkplate 10 – HTTPS certificate
Now that Inkplate is connected to the internet, you will likely want to securely receive data from a website. This page contains an example on how to implement HTTPS certificate into your connecton.
HTTPS example
This example will show you how to download a .bmp file from web securely by providing a certificate for the website that will be validated upon connection. Using applyHttpsCertificate() you can store the certificate for your connection:
Inkplate inkplate(INKPLATE_1BIT);
const char* certificate = ""; //insert your certificate
//..
void setup(){
inkplate.applyHttpsCertificate(certificate);
}
//...
inkplate.applyHttpsCertificate()
Applies a certificate that will be checked when communicating with a website.
Returns type: void
Function parameters:
| Type | Name | Description |
|---|---|---|
const char* | certificate | The certificate in a string format. |
Full example
Check out all the above mentioned functions in this example:
Inkplate10_HTTPS_With_Certificate.ino
This example will show you how you can download a .bmp file (picture) from the web securely by providing a certificate for the website that will be validated upon conncection and display that image on e-paper display.