Skip to main content

Inkplate 6 – HTTPS certificate

Now that Inkplate is connected to the internet, you will likely want to securely receive data from a website. This page provides an example of how to implement an HTTPS certificate for your connection.

HTTPS example

This example shows how to securely download a .bmp file from the web 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;
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:

TypeNameDescription
const char*certificateThe certificate in a string format.

Full example

Check out all the functions mentioned above in this example:

Inkplate6_HTTPS_With_Certificate.ino

This example shows how you can securely download a .bmp file (image) from the web by providing a certificate for the website that will be validated upon connection and display that image on the e-paper display.