User Manual
Table Of Contents
- Overview
- Control Protocols
- WiFi
- Configuration
- USB Configuration Commands
- ST Status. Return the system status
- RB ReBoot.
- IP Sets the modules IP address.
- SB Sets the SuBnet mask.
- GW Sets the GateWay address.
- PD Sets the Primary DNS.
- SD Sets the Secondary DNS.
- SS This sets the SSID.
- PW Sets your networks WIFI password.
- PA Sets the TCP/IP port number for the ASCII commands.
- MS Sets the MQTT broker address
- MD Sets the MQTT ID for this module
- MP Sets the MQTT broker’s port.
- R1-R8 Sets the MQTT topic this relay is subscribed to.
- N1-N8 Sets the MQTT topic this Input will publish to.
- TCP/IP Commands.
- HTML Commands.
- Webpage
- Schematics
- PCB dimensions
- Notes
ESP32SR88 User Manual v1.00
TCP/IP Commands.
The ESP32SR88 has a built in TCP/IP command set which allows you to control the module
remotely.
All commands are sent using plain ASCII text. PuTTY is a good cross platform terminal program to
use for testing. The TCP/IP port is the one you set-up with the PA command during USB
configuration. Do not use port 80 as that is reserved for the HTML commands and Webpage.
SR Set Relay.
This is used to turn a relay on or off
To turn Relay 1 on:
SR 1 1
The first number is the relay number from 1 to 8.
The second number is 1 or 0, on or off.
So turn turn relay 1 off again:
SR 1 0
The command will respond with ok or fail.
SR 1 1
ok
SR 1 6
fail < 6 is not valid, only 1 or 0 for on/off
SR 9 1
fail < relay 9 does not exist.
Copyright © 2020, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
9