V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
LSBs
V2EX  ›  iDev

有人搞蓝牙开发的吗?corebluetooth ble 外设 CBPeripheral identifier 在什么情况下会改变?

  •  
  •   LSBs · Jul 5, 2016 · 3422 views
    This topic created in 3587 days ago, the information mentioned may be changed or developed.
    corebluetooth ble 外设 CBPeripheral identifier 在什么情况下会改变? 网上查了下资料众说纷纭. 现在确认的是不同的手机连同一个设备, identifier 是不同的. 一个手机连同一个设备. identifier 也会变吗? 是在什么情况下会变?
    7 replies    2016-07-07 10:15:10 +08:00
    NovemberEleven
        1
    NovemberEleven  
       Jul 5, 2016
    每一个 iphone 手机的获取 identifier 都不一样,只有 android 能拿到 mac 地址。
    yemenchun1
        2
    yemenchun1  
       Jul 5, 2016
    你可以扫描所有的蓝牙设备然后选择连接呀, 如果只有一个蓝牙设备而且是你的设备就直接连接.
    LSBs
        3
    LSBs  
    OP
       Jul 5, 2016
    @yemenchun1 我现在需要知道的 identifier 如果在同一个手机同一个外设的情况下会不会改变
    LSBs
        4
    LSBs  
    OP
       Jul 5, 2016
    @NovemberEleven 那同一个手机连同一个外设能保证 identifier 不变吗?
    yemenchun1
        5
    yemenchun1  
       Jul 5, 2016 via iPhone
    @LSBs 我记不清了,之前写的时候想找一个设备的固定标识符,但没有成功。你可以下载一个 LightBlue App 直接测试,如果你自己不会写的话。
    NovemberEleven
        6
    NovemberEleven  
       Jul 5, 2016
    @LSBs 能~
    jamescheng
        7
    jamescheng  
       Jul 7, 2016
    应该是会变的...iOS8 以后就不能用 macaddress 了...我们那个时候做了绑定了一个 macaddress 的属性...然后去解析的...
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2446 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 02:39 · PVG 10:39 · LAX 19:39 · JFK 22:39
    ♥ Do have faith in what you're doing.