WiFi basics
On Inkplate 6FLICK, WiFi is handled by the onboard ESP32 processor. These pages contain tutorials on how to use this processor to implement WiFi in your projects.
Connecting to WiFi
These are the basic steps for 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(INKPLATE_1BIT);
void setup(){
inkplate.begin();
inkplate.clearDisplay();
inkplate.display();
Serial.begin(115200);
WiFi.begin(ssid, pass);
inkplate.print("Connecting to WiFi...");
while(WiFi.status()!=WL_CONNECTED){
delay(500);
inkplate.print('.');
inkplate.partialUpdate(true);
delay(1000);
}
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_6FLICK_WiFi_examples
Inkpate 6FLICK WiFi examples from Inkplate library