• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CBPeripheralManager state unsupported Mac OS 10.12.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CBPeripheralManager state unsupported Mac OS 10.12.6


  • Subject: Re: CBPeripheralManager state unsupported Mac OS 10.12.6
  • From: Saagar Jha <email@hidden>
  • Date: Mon, 05 Feb 2018 12:37:48 -0800

What Mac are you using? Are you sure your Mac supports Bluetooth LE (I’m sure
you already know this, but I just wanted to make sure)?

Saagar Jha

> On Feb 5, 2018, at 05:25, Devarshi Kulshreshtha <email@hidden>
> wrote:
>
> I am trying to turn my macbook into BLE by using below code:
>
> var peripheralManager: CBPeripheralManager!
> let uuid = "A6C4C5FA-A8DD-4BA1-B9A8-A240584F02D3"
>
> let options = [CBCentralManagerOptionShowPowerAlertKey:0]
> manager = CBPeripheralManager(delegate: self, queue: nil, options: options)
>
> For some reasons peripheral state being received in below delegate is
> unsupported :
>
> func peripheralManagerDidUpdateState(_ peripheral: CBPeripheralManager) {
>        if peripheral.state == .poweredOn {
>            let dataToBeAdvertised:[String: [AnyObject]] =
> [CBAdvertisementDataServiceUUIDsKey : [CBUUID(string: uuid)]]
>            peripheralManager.startAdvertising(dataToBeAdvertised)
>        }
> }
>
> Any ideas on what could be the issue?
>
> --
> Thanks,
>
> Devarshi
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CBPeripheralManager state unsupported Mac OS 10.12.6
      • From: Devarshi Kulshreshtha <email@hidden>
References: 
 >CBPeripheralManager state unsupported Mac OS 10.12.6 (From: Devarshi Kulshreshtha <email@hidden>)

  • Prev by Date: CBPeripheralManager state unsupported Mac OS 10.12.6
  • Next by Date: Re: CBPeripheralManager state unsupported Mac OS 10.12.6
  • Previous by thread: CBPeripheralManager state unsupported Mac OS 10.12.6
  • Next by thread: Re: CBPeripheralManager state unsupported Mac OS 10.12.6
  • Index(es):
    • Date
    • Thread