© Microhard Systems Inc.
191
5.0 AT Command Line Interface
AT+MIOMODE
Command Syntax (Effect: AT&W)
Get/Set IO input or output mode.
AT+MIOMODE=<Index>,<Mode>
Index:
The index of IO port, 1 to 2
Mode:
0 Input
1 Output
Description
Example
Input:
AT+MIOMODE=1,0 <enter>
Response:
OK
Input:
AT+MIOMODE?
Response:
+MIOMODE: IO port mode
Mode1: 0 Input
Mode2: 0 Input
OK
AT+MIOOC
Command Syntax (Immediate)
Get/Set output control. (I/O point must be set as
output)
AT+MIOOC=<Index>,<Output Control>
Index:
The index of IO port, 1 to 2
Output Control:
0 Open
1 Close
Description
Example
Input:
AT+MIOOC=1,1 <enter>
Response:
OK
Input:
AT+MIOOC?
Response:
+MIOOC: IO Output Control
OutputCtrl1: 1 Close
OutputCtrl2: 0 Open
OK