[英]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.