Skip to main content

Text Input Widget

⚡ Control

The Text Input widget sends an arbitrary string to a virtual pin when the user presses Send or hits Enter. Use it to send SSID names, display messages, AT commands, or any free-form text input.

Default size: 3 × 2 grid cells


Configuration

PropertyTypeDefaultDescription
maxLengthnumber255Maximum number of characters
placeholderstringEnter textHint text shown when empty
sendOnEnterbooleantrueAuto-send when Enter is pressed
DevicedeviceThe device to write to
PinV0V255The virtual pin to write
LabelstringWidget label

Firmware example

VWIRE_RECEIVE(V0) {
String text = param.asStr();

if (text.length() == 0) return;

// Show on OLED
display.clearDisplay();
display.setCursor(0, 0);
display.println(text);
display.display();

// Echo confirmation
Vwire.virtualSend(V0, "Shown: " + text);
}

Use cases

Use caseWhat to send
OLED messageAny display string
Wi-Fi SSID updateSSID name
AT commandAT+CIFSR, AT+RESET, etc.
Webhook URLFull URL string
Device aliasName to store in NVS

Security note

Input validation on device

The device receives raw string data. Always validate on firmware side before acting on the input — e.g. length limits, allowed character sets, checksums — especially for commands with side effects.