WiFi basics
On Inkplate 6COLOR, WiFi is handled by the onboard ESP32 processor; these pages contain tutorials on how to use this processor to implement WiFi into your projects.
Connecting to WiFi
These are the basic steps to connecting to WiFi, followed by the key function explanations:
#include "Inkplate.h"
#include <WiFi.h>
const char* ssid="yourssid";
const char* pass="yourpassword";
Inkplate inkplate;
void setup(){
inkplate.begin();
inkplate.clearDisplay();
inkplate.setTextColor(INKPLATE_BLACK);
inkplate.display();
Serial.begin(115200);
WiFi.begin(ssid, pass);
inkplate.print("Connecting to WiFi...");
while(WiFi.status()!=WL_CONNECTED){
delay(500);
}
inkplate.println("\nSuccessfully connected to WiFi");
inkplate.display();
}
void loop(){}
WiFi.begin()
Connects to a WiFi access point using the specified SSID and password. Sends an AT command to establish the connection. Avoid using the following characters in SSID and password: , {, }, \\
Returns value: Returns true if the command execution was successful, otherwise returns false.
Function parameters:
| Type | Name | Description |
|---|---|---|
char* | _ssid | Pointer to the SSID (AP name). Must be a valid UTF-8 string. |
char* | _pass | Pointer to the AP password. Maximum length is 63 characters. |
WiFi.status()
Checks the connection status of the ESP32 WiFi module. Returns whether the module is connected to an access point.
Returns value: Returns true if the ESP32 is connected to the AP, otherwise returns false.
Full example
To see more details, check out our full examples:
Inkplate_6COLOR_WiFi_examples
Inkplate 6COLOR WiFi examples from Inkplate library