![Texas Instruments CC3220 Скачать руководство пользователя страница 61](http://html.mh-extra.com/html/texas-instruments/cc3220/cc3220_programmers-manual_1094609061.webp)
Wi-Fi Direct
61
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
WLAN
–
SSID length
–
BSSID
–
Go device name
–
Go device name length
•
SL_WLAN_EVENT_P2P_CLIENT_ADDED
Indicates that Wi-Fi Direct connection was successfully completed. The device is Wi-Fi Direct GO and
contains the remote device parameters:
–
Client MAC address
–
Client device name
–
Client device name length
–
Own device name
–
Own device name length
•
SL_WLAN_EVENT_P2P_CLIENT_REMOVED
Indicates that a Wi-Fi Direct client was disconnected successfully. The device is P2P GO and contains
the remote device parameters:
–
Client MAC address
–
Client device name
–
Client device name length
–
Own device name
–
Own device name length
•
SL_WLAN_EVENT_P2P_DEVFOUND
Indicates that a Wi-Fi Direct device was found during the scan and it contains the remote device
parameters:
–
Device name
–
Device name length
–
Device MAC address
–
WPS Method
•
SL_WLAN_EVENT_P2P_REQUEST
Indicates that a negotiation request was received from a Wi-Fi Direct remote device and it contains the
remote device parameters:
–
Device name
–
Device name length
–
Device MAC address
–
WPS Method
•
SL_WLAN_EVENT_P2P_CONNECTFAIL
This event is sent if the connection failed with the failure reason.
Errors are indicated by the return value of the API. Each error code is unique.
lists common
errors that require user action (a complete list of possible errors is under the file error.h in the host driver).
Table 4-7. Common Errors
Error
Value
Comments
SL_ERROR_ROLE_P2P_ERR
-4109
Initialization failure in Wi-Fi Direct mode
SL_ERROR_NET_APP_P2P_ROLE_IS_
NOT_CONFIGURED
-6210
Wi-Fi Direct mode is not configured yet, and should be CL or GO to
execute the command.
SL_ERROR_WLAN_INVALID_ROLE
-2050
Action applied does not match the current mode.