Connect to an external accessory using the Wahoo API

I am using the Wahoo api for an iPhone application that uses the Wahoo external accessory (ANT + key). I added the version 2.3.5 framework on the "Build Phases" tab in the "Linking Binary Files to Elements" section. Then I created test.h and test.m. I imported the WFConnector / WFConnector.h header and declared a property

@property(nonatomic,retain) WFHardwareConnector* hardwareConnector; 

In test.m, in the method, suppose that "getHWConnect" I entered the following

 hardwareConnector = [WFHardwareConnector sharedConnector]; hardwareConnector.delegate = self; 

However, when I try to check the state of the ANT + key using

 if(hardwareConnector.isCommunicationHWReady) 

I get the following error

 "Property 'isCommunicationHWReady' not found on object of type "WFHardwareConnector *" 

However, the property is in the header! Check out the photos I added below.

Error

Property in header

Check it out at api.wahoofitness.com .

What mistake did I make? Please help me in this regard.

+4
source share

All Articles