日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Android >内容正文

Android

android o wifi 感知,Android上的Wifi感知与Wifi P2P之间有何区别?

發(fā)布時間:2025/4/16 Android 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android o wifi 感知,Android上的Wifi感知与Wifi P2P之间有何区别? 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

根據(jù)Android文檔,使用Wi-Fi Aware,您可以在服務發(fā)現(xiàn)階段在設備之間發(fā)送數(shù)據(jù)(僅輕量級!最大255個字節(jié)),并且在需要時可以打開設備之間的連接以發(fā)送更大的數(shù)據(jù).使用Wi-Fi對等網絡時,必須先執(zhí)行某種身份驗證,然后再打開套接字,然后才能在設備之間發(fā)送數(shù)據(jù).

The Wi-Fi Aware APIs let apps perform the following operations:

Discover other devices: […] After the subscriber discovers a publisher, the subscriber can either send a short message or establish a network connection with the discovered device.

Create a network connection: After two devices have discovered each other […] they can create a bi-directional Wi-Fi Aware network connection without an access point.

Note: Messages are generally used for lightweight messaging, as they might not be delivered (or be delivered out-of-order or more than once) and are limited to about 255 bytes in length.

此外,使用Wi-Fi Aware,開發(fā)人員可以在DiscoverySession類的createNetworkSpecifierOpen()方法和createNetworkSpecifierPassphrase()方法之間進行選擇,以分別打開設備之間的未加密或加密連接.

使用Wi-Fi對等時,開發(fā)人員除了WifiP2PManager.connect()方法外別無選擇.調用它會在所連接的設備上觸發(fā)一個對話框(按鈕配置),并且僅當兩個設備首次相互連接時才會出現(xiàn)該對話框.順便說一句…修改WifiP2pConfig的WpsInfo是沒有用的.它將始終使用“按鈕配置”選項.

總結

以上是生活随笔為你收集整理的android o wifi 感知,Android上的Wifi感知与Wifi P2P之间有何区别?的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。