High-Flying
Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
- 64 -
APPENDIX B: CONTROL GPIO/PWM
FUNCTION WITH NETWORK COMMANDS
Send command data to control module’s GPIO, PWM port after make network connection with TCP or
UDP protocol. The status of GPIO won’t be changed if the module is reset
B.1 Network Command
B.1.1
GPIO <channel> OUT <value>
Function: Set GPIO Channel value temporarily.
。
Parameters:
channel:GPIO Channel number, it can be 11
、
12
、
15
、
18
、
20
、
23(GPIO Pin
number)
value:GPIO Channel value,1(high voltage)
,
0(low voltage)
Return Data:
GPIO OK: Command successful
GPIO NOK: Command failed
B.1.2
GPIO <channel> GET
Function: Query GPIO Channel value
Parameters:
channel: GPIO Channel number,it can be 11
、
12
、
15
、
18
、
20
、
23(GPIO Pin
number)
Return Data:
+ok=<value>
value:GPIO Channel value
HF-SH01