Skip to main content

Inkplate 13SPECTRA – 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 of how to implement an HTTPS certificate into your connection.

HTTPS example

This example will show you how to download a .bmp file from the 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:

ℹ️
The certificate string below is intentionally left empty, it's a placeholder for your own website's certificate. Paste your certificate's contents (in PEM format) between the quotes before uploading.
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 of the above mentioned functions in this example:

Inkplate13SPECTRA_HTTPS_With_Certificate.ino

Full example of downloading a file securely using an HTTPS certificate.