Function FindService

Synopsis

#include <bta/gatt/database.h>

Service * FindService(std::vector< Service > &services, uint16_t handle)

Description

No description yet.

Source

Lines 42-49 in bta/gatt/database.cc. Line 124 in bta/gatt/database.h.

Service* FindService(std::vector<Service>& services, uint16_t handle) {
  for (Service& service : services) {
    if (handle >= service.handle && handle <= service.end_handle)
      return &service;
  }

  return nullptr;
}





Add Discussion as Guest

Log in to DocsForge