![Ebyte E103-W03 Скачать руководство пользователя страница 29](http://html1.mh-extra.com/html/ebyte/e103-w03/e103-w03_product-instruction-manual_3841760029.webp)
Chengdu Ebyte Electronic Technology Co.,Ltd.
E103-W03 User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
29
6.1.2.3 P2P communication of WiFi-Direct
WiFi-Direct is a point-to-point connection, and the configuration process is as follows when using it.
1. * First configure to P2P mode, two modules send AT commands at the same time: AT+MODE=3,1,1
2. *Then select one of the modules and configure it as GroupOwner, and send commands to set connection parameters
(see Configuration, Read WiFi-Direct (P2P) connection parameters for instructions):
AT+P2PDEVINFO=20,1,E103-W03WiFiDirectGo,E103-W03WiFiDirectClient
1. Query the socket local port and IP address (or):
AT+P2PSOCKET?
4. *Finally configure another module as Client, send commands to set connection parameters:
AT+P2PDEVINFO=20,0,E103-W03WiFiDirectClient,E103-W03WiFiDirectGo
5. * Configure the remote port and address, and set the IP address and port of the GroupOwner queried in the previous
step to the Client (the IP address and port of this part must be obtained after querying the GroupOwner, otherwise
communication cannot be established)
AT+SVRPORTIP=4001,192.168.1.1