Datasheet

ESP32LR42 User Manual v1.02
GR Get Relay.
Will return the state of the relay.
To get the status of relay 3:
GR 3
1
GR 3
0
GR 9
fail < relay 9 does not exist.
GI Get Input.
Will return the status of an input.
GI 2
0 Input 2 is low (Green Led is on)
GI 2 Input 2 is high (Green Led is off)
1
GI 9
fail Only 2 inputs available
AL Get All 2 inputs.
AL
10 Here, Input 2 is low, all others are high.
Inputs are numbered from left to right, 1 to 2.
Copyright © 2018, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
9