GS2101M IP2WiFi Adapter Command Reference Guide
1VV0301499
Rev. 2.0
75
2019-08-05
4.5.2 Get MAC Address
This command is used to output the current MAC address of the wireless interface to the
serial port.
Command Syntax
AT+NMAC=?
Synchronous Response
describes the synchronous responses and remarks for the Get MAC
Address command.
Example 1
To get the current MAC address for the GS node in STA mode, execute the following
sequence of commands:
AT+WM=0
OK
AT+NMAC=?
00:1d:c9:d0:70:cc
OK
Example 2
To get the current MAC address for the GS node in AP mode, execute the following
sequence of commands:
AT+WM=2
OK
AT+NMAC=?
00:1d:c9:d0:70:cc
OK
NOTE:
1.) The GS node is stored with two MAC addresses. One when it is in STA mode
and the other when it is in AP mode.
The MAC address printed on the GS node is for STA mode.
STA MAC a 1 is the MAC address for AP mode.
2.) To get the current MAC address for the GS node in STA mode, execute the
command AT+WM=0 followed by the AT+NMAC=? command.
3.) To get the current MAC address for the GS node in AP mode, execute the
command AT+WM=2 followed by the AT+NMAC=? command.
Table 45 Get MAC Address Synchronous Responses
Responses
Remarks
OK
Success