User Manual

High-Flying
HF-LPB Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
- 62 -
APPENDIX B: CONTROL GPIO/PWM
FUNCTION WITH NETWORK COMMANDS
Send command data to control modules GPIO, PWM port after make network connection with
TCP or UDP protocol. The status of GPIO wont 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 111218(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 111218(GPIO Pin Number )
Return Data:
+ok=<value>
value:GPIO Channel value