簡體   English   中英

在Android BLE應用程序中,mAdvertiseFlags = -1是什么意思?

[英]what does mAdvertiseFlags = -1 means in the Android BLE Application?

當運行BLE android應用程序時,對於給定的wearbale_X的Mac ID,我在adblog中得到mAdvertiseFlags = -1,-1意味着什么?有時mAdvertiseFlags變為4。對於其他一些wearbale_Y,我連續得到mAdvertiseFlags = 6。

廣告標記指示設備的可發現模式和功能。

-1表示尚未實現mAdvertisementFlags 換句話說,沒有廣告標記。

源:ScanRecord源代碼:

/**
 * Returns the advertising flags indicating the discoverable mode and capability of the device.
 * Returns -1 if the flag field is not set.
 */
public int getAdvertiseFlags() {
    return mAdvertiseFlags;
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM