The set command changes the pin specified in the command to input mode and sets internal pull-up for the corresponding pin.
After this, the pin state is read and reported in the command response.
Syntax:
%XANTDETMAGPIO=<magpio_pin>
The set command parameter and its defined values are the following:
The response values are the following:
After the command, the pin state is set back to normal (high-Z).
AT%XANTDETMAGPIO=2
%XANTDETMAGPIO: 0
OK