This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Swift 3 - CBPeripheral.services nil problem

Hi, I was trying to create an NUS (Nordic UART Service) application for iOS 10 devices using Swift 3.

I was testing with my

  • iPhone 6 Plus 64GB (iOS 10.2.1)

  • PCA10040 v1.1 that has NUS peripheral example from SDK 12.1 + S132 v3.0

ViewController.swift

As you see my attachment, I left a comment at the centralManager function.

When the centralManagerfunction is called, the log screen printed Nordic_UART.

However, the services couldn't be printed because it was nil.

Are there extra configurations to set in order to get the services?

-Best Regards

Parents Reply Children
No Data
Related