Commands
Here you can learn and try out the commands. The right window shows the syntax of the commands, and the HELP button in the window provides details.
In HELP, the number of blue and green commands is limited for RAM saving reasons, adjustable in the Setup/Other/Max commands menu. Clicking on the commands will execute them and automatically copy them to the clipboard.
Green commands
In the command help, the green coloured lines assign commands to be executed to some event.
Examples:
GPIO[D5]CL:LED(FLASH)
The command is executed (led flash) when the GPIO[D5] pin switches to low level.
GPIO[D5]CL:&LED(FLASH)
Using the & character, the command is executed before being stored.
GPIO[D5]CL&
Executes the stored command.
GPIO[D5]CL?
Sends the stored command to STDOUT (for debugging).
Multiple commands at once
The | character can be used to send multiple commands at once. For example: GPIO[D1]H|GPIO[D2]H|GPIO[D3]H
The ; character can be used with green commands. E.g., CMD[0]:GPIO[D1]H;GPIO[D2]H;GPIO[D3]H
The assembled command line can be a maximum of 512 characters long!
Module addressing
A command starting with !1234! is only executed by the module whose DeviceID ends with 1234. For example: !1234!GPIO[D1]H
A command sent to the WebSocket, UDP broadcast channel is received by all modules on the network, but only the selected one will execute it.
Debug
If debugging is enabled in the Setup/Other menu, the commands are visible on the serial terminal.
If a * character is before the command, it will not appear in the serial console.
This is useful for, for example, 100ms cycle LED blinking and similar cases.
LED
Configurable GPIO pin for LED in the Setup menu, with Vcc/GND connection. The default setting is the built-in LED of Wemos D1 mini (ESP12 module).
With this command, the system logic can be understood, and other commands can be easily tested.
STR/NUM
256 numbers/strings can be stored and modified, and all connected devices can query their current content simultaneously.
The first 10 numbers are configurable (min, max, text before/after, commands). FLASH saving is possible.
CMD
Makes the code clearer, allowing many commands to be issued with one instruction. It is recommended to use in boot.txt.
GPIO
The module has 9 freely usable digital pins and one analog input.
The GPIO command is intended to control and query these, and to assign commands to their state changes.
EXTIO
Up to 8 PCF8574 I2C port expanders can be connected to the module.
The EXTIO command handles these up to 64 I/O ports.
TIMER
It is possible to use up to 10 timers simultaneously. Separate commands can be assigned to the start and end of each timer.
IF
Executes commands when specified conditions are met.
TM1637
Command to control a TM1637 7-segment LED display.
LCD
Command to control an HD44780 LCD display.
OLED
Handles SH1106, SSD1306 OLED displays.
OMENU
Creates a menu on a 128x64 OLED display, controllable with buttons/Rotary encoder.
ROT
Sets up the operation of a Rotary Encoder.
TEHU
Queries the value of a temperature/humidity sensor and assigns commands to its changes.
STRIP
Controls WS2812 RGB LED strips.
TIME
Precise time, date, timer.
SEND
Sends a message to WS/UDP/TCP/TCPS/USB/SER/NOW channels and specifies a command to execute upon receiving a message.
MAIL
Sends an email message.
RTTTL
Plays a Nokia format ringtone file.
BEEP
Beeps.
IRRX
Handles infrared remote control.
FREQ
Measures frequency, RPM.
RFID
Enables the use of RFID tags.
NFC
Enables the use of NFC tags.
MIC
WiFi microphone.
DIMM
Triac controller.
NVR
Stores strings in non-volatile memory.
GEST
Assigns commands to APDS9960 gestures.
PROX
APDS9960 proximity sensor.
LIGHT
APDS9960 light/color sensor.
TROLL
WiFi spammer/jammer.
WIFI
Turns WiFi on/off.
REBOOT
Reboots the module.
SLEEP
Turns off the module.