Skip to content

Commit d27c430

Browse files
committed
Base: Slave: Remove search headers
Remove this until I have a better idea of how to implement it. Open Rx Searching will be available soon.
1 parent 1cb487b commit d27c430

File tree

2 files changed

+0
-37
lines changed

2 files changed

+0
-37
lines changed

src/BaseClasses/ANTPLUS_BaseSlaveProfile.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ BaseSlaveProfile::BaseSlaveProfile(uint16_t deviceNumber, uint8_t transmissionTy
1313

1414
}
1515

16-
uint8_t BaseSlaveProfile::searchForDevices(uint16_t* buffer) {
17-
// TODO
18-
return 0;
19-
}
20-
2116
uint8_t BaseSlaveProfile::waitForPair() {
2217
// TODO add a timeout in the event packed was dropped?
2318
while (getChannelStatus() == CHANNEL_STATUS_SEARCHING) {

src/BaseClasses/ANTPLUS_BaseSlaveProfile.h

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,6 @@ class BaseSlaveProfile : public BaseProfile {
88
BaseSlaveProfile();
99
BaseSlaveProfile(uint16_t deviceNumber);
1010
BaseSlaveProfile(uint16_t deviceNumber, uint8_t transmissionType);
11-
/**
12-
* Pass in a pointer to an array uint16_t[ANTPLUS_MAX_CHANNELS_POSSIBLE]
13-
* Starts a search for all devices configured with this profle
14-
* This will disrupt all other channels to do the search, therefore you will have to
15-
* call start() on all registered profiles.
16-
* This is a blocking method, see backgroundDeviceSearch for a non-blocking variation.
17-
*
18-
* returns the number of the ids filled.
19-
*/
20-
uint8_t searchForDevices(uint16_t* buffer);
21-
/**
22-
* Pass in a pointer to an array uint16_t[ANTPLUS_MAX_CHANNELS_POSSIBLE]
23-
* Start a non-blocking search for the following device profile.
24-
* This will disrupt all other channels to do the search, therefore you will have to
25-
* call start() on all registered profiles.
26-
*/
27-
void backgroundDeviceSearch(uint16_t* buffer);
28-
/**
29-
* Check the status of the backgroundDeviceSearch.
30-
*/
31-
uint8_t backgroundDeviceSearchStatus();
32-
/**
33-
* Call this to determine the number of devices found using backgroundDeviceSearch.
34-
* This can be called before the search is completed.
35-
*/
36-
uint8_t backgroundDeviceSearchNumberDevices();
37-
/**
38-
* TODO
39-
*
40-
* Register a callback method for when backgroundDeviceSearch completes.
41-
*/
42-
void backgroundDeviceSearchCallback();
4311
/**
4412
* Will return once the device either pairs or timesout its search
4513
*/

0 commit comments

Comments
 (0)