H14-231_V1-0 practice question 11 of 35

When developing an application, a developer uses the WLANP2P function to realize point-to-point data transmission between devices. The functionality of the application is as follows: Function 1: Discover the peer device. Function 2: Create and remove groups. Function 3: Initiate a connection to the peer device. Which of the above features is correct in the following descriptions?

Full set: 699 questions
Answer options
A: To implement function 2, you need to use the createGroup() and removeGroup( ) interfaces, and you need to request ohos. permission. GET_WIFI_INFO permissions
B: To achieve function 1, you need to use the discoverDevice() interface, and you need to request ohos. permission. SET_WIFI_INFO Limitations
C: In order to achieve function 3, the connect() interface needs to be used, and the ohos.permission.SET_WIFI_INFO permissions need to be requested
D: In order to achieve the above functions, you need to initialize the P2P messenger through the init() interface, and you need to request ohos.permission.GET_WIFI_INFO and ohos.permission.SET_WIFI_INFO permissions
Correct Answer:
AD
Scroll to Top