iphone - iOS - Property 'isConnected' not found on object of type 'CBPeripheral' -


good day. trying replicate android app made ios. i'm trying make ble application ios device able see , connect ble devices , rssi (i don't care message , other data). upon search research, found this blte central peripheral transfer examplein ios developer library. upon downloading, opening xcode project, , ran it. however, ran error shorty after code:

if (!self.discoveredperipheral.isconnected) {     return; } 

where error is: property 'isconnected' not found on object of type 'cbperipheral'

upon searching again, i found link. however, seems thread not have solutions answers discussed seem deprecated. can't seem find solutions issue well.

has tried make code ios developer library work? lead appreciated. pretty sad code ios dev site deprecated , not updated.

the documentation says

deprecation statement
use state property instead.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -