diff --git a/src/NimBLEUtils.cpp b/src/NimBLEUtils.cpp index b23a3fa..ec9817f 100644 --- a/src/NimBLEUtils.cpp +++ b/src/NimBLEUtils.cpp @@ -607,22 +607,9 @@ void NimBLEUtils::getAttr(const NimBLEUUID& uuid, T** attr, const std::vector( - const NimBLEUUID&, - NimBLERemoteService**, - const std::vector&, - const std::function&); - -template void NimBLEUtils::getAttr( - const NimBLEUUID&, - NimBLERemoteDescriptor**, - const std::vector&, - const std::function&); - -template void NimBLEUtils::getAttr( - const NimBLEUUID&, - NimBLERemoteCharacteristic**, - const std::vector&, - const std::function&); +using svc = NimBLERemoteService; using chr = NimBLERemoteCharacteristic; using dsc = NimBLERemoteDescriptor; +template void NimBLEUtils::getAttr(const NimBLEUUID&, svc**, const std::vector&, const std::function&); +template void NimBLEUtils::getAttr(const NimBLEUUID&, chr**, const std::vector&, const std::function&); +template void NimBLEUtils::getAttr(const NimBLEUUID&, dsc**, const std::vector&, const std::function&); #endif // CONFIG_BT_ENABLED