WiFi basics
Inkplate 2 includes an ESP32 microcontroller that supports both WiFi and Bluetooth. This page explains how to use WiFi functionality to connect your Inkplate 2 to a network.
Connecting to WiFi
Below is a basic example of how to connect your Inkplate 2 to a WiFi network. This uses standard ESP32 WiFi functionality:
#include "Inkplate.h"
#include <WiFi.h>
const char* ssid = "yourssid";
const char* pass = "yourpassword";
Inkplate inkplate;
void setup() {
inkplate.begin();
inkplate.clearDisplay();
inkplate.display();
Serial.begin(115200);
inkplate.setTextColor(INKPLATE2_BLACK);
WiFi.begin(ssid, pass);
inkplate.setCursor(10, 10);
inkplate.print("Connecting to WiFi...");
inkplate.display();
while (WiFi.status() != WL_CONNECTED) {
delay(500);
inkplate.print(".");
inkplate.display();
}
inkplate.println("\nConnected!");
inkplate.display();
}
void loop() {}
WiFi.status()
Checks the current connection status of the ESP32's WiFi module.
Returns value: Returns WL_CONNECTED if the board is connected to a WiFi network.
Full example
To see more details, check out our full examples:
Inkplate_2_WiFi_examples
Inkpate 10 WiFi examples from Inkplate library