Update license

This commit is contained in:
h2zero 2024-12-12 19:21:03 -07:00 committed by Ryan Powell
parent 2d1e33a75e
commit 5afb5af81e
53 changed files with 616 additions and 348 deletions

View file

@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier same "printed page" as the copyright notice for easier
identification within third-party archives. identification within third-party archives.
Copyright {2020} {Ryan Powell} Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -199,5 +199,3 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
This product partly derives from esp32-snippets; Copyright 2017 Neil Kolban.

10
NOTICE Normal file
View file

@ -0,0 +1,10 @@
esp-nimble-cpp
NimBLE-Arduino
Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
esp-nimble-cpp, NimBLE-Arduino contributors.
The Initial Developer of some parts of this library, which are copied from,
derived from, or inspired by is, esp32-snippets, Copyright 2017 Neil Kolban.
If this library is used for commercial purposes, it is requested that the user consider
making a donation and/or sponsoring this project to support it's ongoing development.

View file

@ -1,15 +1,18 @@
/* /*
* NimBLE2904.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 13, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLE2904.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Dec 23, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLE2904.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 13, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLE2904.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Dec 23, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_2904_H_ #ifndef NIMBLE_CPP_2904_H_
@ -23,8 +26,8 @@
struct NimBLE2904Data { struct NimBLE2904Data {
uint8_t m_format{0}; uint8_t m_format{0};
int8_t m_exponent{0}; int8_t m_exponent{0};
uint16_t m_unit{0x2700}; // Unitless; See https://www.bluetooth.com/specifications/assigned-numbers/units uint16_t m_unit{0x2700}; // Unitless; See https://www.bluetooth.com/specifications/assigned-numbers/units
uint8_t m_namespace{1}; // 1 = Bluetooth SIG Assigned Numbers uint8_t m_namespace{1}; // 1 = Bluetooth SIG Assigned Numbers
uint16_t m_description{0}; // unknown description uint16_t m_description{0}; // unknown description
} __attribute__((packed)); } __attribute__((packed));

View file

@ -1,16 +1,20 @@
/* /*
* NimBLEAddress.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEAddress.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 2, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"
#if defined(CONFIG_BT_ENABLED) #if defined(CONFIG_BT_ENABLED)

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEAddress.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEAddress.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 2, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_ADDRESS_H_ #ifndef NIMBLE_CPP_ADDRESS_H_
@ -59,8 +62,8 @@ class NimBLEAddress : private ble_addr_t {
const NimBLEAddress& reverseByteOrder(); const NimBLEAddress& reverseByteOrder();
bool operator==(const NimBLEAddress& rhs) const; bool operator==(const NimBLEAddress& rhs) const;
bool operator!=(const NimBLEAddress& rhs) const; bool operator!=(const NimBLEAddress& rhs) const;
operator std::string() const; operator std::string() const;
operator uint64_t() const; operator uint64_t() const;
}; };
#endif /* CONFIG_BT_ENABLED */ #endif /* CONFIG_BT_ENABLED */

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEAdvertisedDevice.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEAdvertisedDevice.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 3, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEAdvertisedDevice.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEAdvertisedDevice.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 3, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_ADVERTISED_DEVICE_H_ #ifndef NIMBLE_CPP_ADVERTISED_DEVICE_H_

View file

@ -1,9 +1,18 @@
/* /*
* NimBLEAdvertisementData.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on November 24, 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,9 +1,18 @@
/* /*
* NimBLEAdvertisementData.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on November 24, 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_ADVERTISEMENT_DATA_H_ #ifndef NIMBLE_CPP_ADVERTISEMENT_DATA_H_
@ -13,9 +22,9 @@
#if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV) || \ #if (defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && !CONFIG_BT_NIMBLE_EXT_ADV) || \
defined(_DOXYGEN_) defined(_DOXYGEN_)
#include <cstdint> # include <cstdint>
#include <string> # include <string>
#include <vector> # include <vector>
class NimBLEUUID; class NimBLEUUID;
/** /**

View file

@ -1,17 +1,18 @@
/* /*
* NimBLEAdvertising.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 3, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
*
* BLEAdvertising.cpp
*
* This class encapsulates advertising a BLE Server.
* Created on: Jun 21, 2017
* Author: kolban
* *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEAdvertising.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 3, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEAdvertising.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jun 21, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_ADVERTISING_H_ #ifndef NIMBLE_CPP_ADVERTISING_H_

View file

@ -1,9 +1,18 @@
/* /*
* NimBLEAttValue.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on July 17, 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"
@ -32,8 +41,7 @@ NimBLEAttValue::NimBLEAttValue(uint16_t init_len, uint16_t max_len)
} }
// Value constructor implementation. // Value constructor implementation.
NimBLEAttValue::NimBLEAttValue(const uint8_t *value, uint16_t len, uint16_t max_len) NimBLEAttValue::NimBLEAttValue(const uint8_t* value, uint16_t len, uint16_t max_len) : NimBLEAttValue(len, max_len) {
: NimBLEAttValue(len, max_len) {
memcpy(m_attr_value, value, len); memcpy(m_attr_value, value, len);
m_attr_value[len] = '\0'; m_attr_value[len] = '\0';
m_attr_len = len; m_attr_len = len;

View file

@ -1,9 +1,18 @@
/* /*
* NimBLEAttValue.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 18, 2021 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_ATTVALUE_H #ifndef NIMBLE_CPP_ATTVALUE_H

View file

@ -1,8 +1,18 @@
/* /*
* NimBLEAttribute.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on July 28 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_ATTRIBUTE_H_ #ifndef NIMBLE_CPP_ATTRIBUTE_H_
@ -43,7 +53,7 @@ class NimBLEAttribute {
~NimBLEAttribute() = default; ~NimBLEAttribute() = default;
const NimBLEUUID m_uuid{}; const NimBLEUUID m_uuid{};
uint16_t m_handle{0}; uint16_t m_handle{0};
}; };
#endif // CONFIG_BT_ENABLED && (CONFIG_BT_NIMBLE_ROLE_PERIPHERAL || CONFIG_BT_NIMBLE_ROLE_CENTRAL) #endif // CONFIG_BT_ENABLED && (CONFIG_BT_NIMBLE_ROLE_PERIPHERAL || CONFIG_BT_NIMBLE_ROLE_CENTRAL)

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEBeacon.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 15 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEBeacon.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jan 4, 2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEBeacon.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 15 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEBeacon.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jan 4, 2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_BEACON_H_ #ifndef NIMBLE_CPP_BEACON_H_

View file

@ -1,13 +1,18 @@
/* /*
* NimBLECharacteristic.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 3, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* BLECharacteristic.cpp * http://www.apache.org/licenses/LICENSE-2.0
* *
* Created on: Jun 22, 2017 * Unless required by applicable law or agreed to in writing, software
* Author: kolban * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,14 +1,18 @@
/* /*
* NimBLECharacteristic.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 3, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* BLECharacteristic.h
* *
* Created on: Jun 22, 2017 * Unless required by applicable law or agreed to in writing, software
* Author: kolban * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_CHARACTERISTIC_H_ #ifndef NIMBLE_CPP_CHARACTERISTIC_H_

View file

@ -1,14 +1,18 @@
/* /*
* NimBLEClient.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 26 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* BLEClient.cpp
* *
* Created on: Mar 22, 2017 * Unless required by applicable law or agreed to in writing, software
* Author: kolban * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"
@ -304,7 +308,7 @@ bool NimBLEClient::secureConnection(bool async) const {
int rc = 0; int rc = 0;
if (async && !NimBLEDevice::startSecurity(m_connHandle, &rc)) { if (async && !NimBLEDevice::startSecurity(m_connHandle, &rc)) {
m_lastErr = rc; m_lastErr = rc;
m_asyncSecureAttempt = 0; m_asyncSecureAttempt = 0;
return false; return false;
} }

View file

@ -1,14 +1,18 @@
/* /*
* NimBLEClient.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 26 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* BLEClient.h
* *
* Created on: Mar 22, 2017 * Unless required by applicable law or agreed to in writing, software
* Author: kolban * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_CLIENT_H_ #ifndef NIMBLE_CPP_CLIENT_H_

View file

@ -1,3 +1,20 @@
/*
* Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef NIMBLECONNINFO_H_ #ifndef NIMBLECONNINFO_H_
#define NIMBLECONNINFO_H_ #define NIMBLECONNINFO_H_
@ -60,7 +77,7 @@ class NimBLEConnInfo {
friend class NimBLEDescriptor; friend class NimBLEDescriptor;
ble_gap_conn_desc m_desc{}; ble_gap_conn_desc m_desc{};
NimBLEConnInfo(){}; NimBLEConnInfo() {};
NimBLEConnInfo(ble_gap_conn_desc desc) { m_desc = desc; } NimBLEConnInfo(ble_gap_conn_desc desc) { m_desc = desc; }
}; };
#endif #endif

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEDescriptor.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 10, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEDescriptor.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jun 22, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEDescriptor.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 10, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEDescriptor.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jun 22, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_DESCRIPTOR_H_ #ifndef NIMBLE_CPP_DESCRIPTOR_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEDevice.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEDevice.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 16, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEDevice.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEDevice.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 16, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_DEVICE_H_ #ifndef NIMBLE_CPP_DEVICE_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEEddystoneTLM.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 15 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEEddystoneTLM.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 12, 2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: pcbreflux * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEEddystoneTLM.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 15 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEEddystoneTLM.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 12, 2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: pcbreflux * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_EDDYSTONETLM_H_ #ifndef NIMBLE_CPP_EDDYSTONETLM_H_

View file

@ -1,8 +1,18 @@
/* /*
* NimBLEExtAdvertising.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on February 6, 2022 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,8 +1,18 @@
/* /*
* NimBLEExtAdvertising.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on February 6, 2022 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_EXTADVERTISING_H_ #ifndef NIMBLE_CPP_EXTADVERTISING_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEHIDDevice.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Oct 06 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author wakwak-koba * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEHIDDevice.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jan 03, 2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: chegewara * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEHIDDevice.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Oct 06 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author wakwak-koba * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEHIDDevice.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jan 03, 2018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: chegewara * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_HIDDEVICE_H_ #ifndef NIMBLE_CPP_HIDDEVICE_H_

View file

@ -1,8 +1,18 @@
/* /*
* NimBLELocalAttribute.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on July 28 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_LOCAL_ATTRIBUTE_H_ #ifndef NIMBLE_CPP_LOCAL_ATTRIBUTE_H_

View file

@ -1,8 +1,18 @@
/* /*
* NimBLELocalValueAttribute.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on July 28 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_LOCAL_VALUE_ATTRIBUTE_H_ #ifndef NIMBLE_LOCAL_VALUE_ATTRIBUTE_H_

View file

@ -1,9 +1,18 @@
/* /*
* NimBLELog.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Feb 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef MAIN_NIMBLELOG_H_ #ifndef MAIN_NIMBLELOG_H_
#define MAIN_NIMBLELOG_H_ #define MAIN_NIMBLELOG_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLERemoteCharacteristic.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 27 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLERemoteCharacteristic.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 16, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLERemoteCharacteristic.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 27 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLERemoteCharacteristic.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 8, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_REMOTE_CHARACTERISTIC_H_ #ifndef NIMBLE_CPP_REMOTE_CHARACTERISTIC_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLERemoteDescriptor.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 27 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLERemoteDescriptor.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 8, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"
@ -25,7 +28,8 @@
*/ */
NimBLERemoteDescriptor::NimBLERemoteDescriptor(const NimBLERemoteCharacteristic* pRemoteCharacteristic, NimBLERemoteDescriptor::NimBLERemoteDescriptor(const NimBLERemoteCharacteristic* pRemoteCharacteristic,
const ble_gatt_dsc* dsc) const ble_gatt_dsc* dsc)
: NimBLERemoteValueAttribute{dsc->uuid, dsc->handle}, m_pRemoteCharacteristic{pRemoteCharacteristic} {} // NimBLERemoteDescriptor : NimBLERemoteValueAttribute{dsc->uuid, dsc->handle},
m_pRemoteCharacteristic{pRemoteCharacteristic} {} // NimBLERemoteDescriptor
/** /**
* @brief Get the characteristic that owns this descriptor. * @brief Get the characteristic that owns this descriptor.

View file

@ -1,15 +1,18 @@
/* /*
* NimBLERemoteDescriptor.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 27 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLERemoteDescriptor.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 8, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_REMOTE_DESCRIPTOR_H_ #ifndef NIMBLE_CPP_REMOTE_DESCRIPTOR_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLERemoteService.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 27 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLERemoteService.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 8, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"
@ -148,7 +151,6 @@ int NimBLERemoteService::characteristicDiscCB(uint16_t conn_handle,
auto pTaskData = (NimBLETaskData*)arg; auto pTaskData = (NimBLETaskData*)arg;
const auto pSvc = (NimBLERemoteService*)pTaskData->m_pInstance; const auto pSvc = (NimBLERemoteService*)pTaskData->m_pInstance;
if (error->status == BLE_HS_ENOTCONN) { if (error->status == BLE_HS_ENOTCONN) {
NIMBLE_LOGE(LOG_TAG, "<< Characteristic Discovery; Not connected"); NIMBLE_LOGE(LOG_TAG, "<< Characteristic Discovery; Not connected");
NimBLEUtils::taskRelease(*pTaskData, error->status); NimBLEUtils::taskRelease(*pTaskData, error->status);

View file

@ -1,15 +1,18 @@
/* /*
* NimBLERemoteService.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 27 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLERemoteService.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 8, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_REMOTE_SERVICE_H_ #ifndef NIMBLE_CPP_REMOTE_SERVICE_H_

View file

@ -1,8 +1,18 @@
/* /*
* NimBLERemoteValueAttribute.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on July 28 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,8 +1,18 @@
/* /*
* NimBLERemoteValueAttribute.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on July 28 2024 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_REMOTE_VALUE_ATTRIBUTE_H_ #ifndef NIMBLE_CPP_REMOTE_VALUE_ATTRIBUTE_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEScan.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEScan.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 1, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,16 +1,20 @@
/* /*
* NimBLEScan.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEScan.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jul 1, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_SCAN_H_ #ifndef NIMBLE_CPP_SCAN_H_
#define NIMBLE_CPP_SCAN_H_ #define NIMBLE_CPP_SCAN_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEServer.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 2, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEServer.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Apr 16, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEServer.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 2, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEServer.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Apr 16, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_SERVER_H_ #ifndef NIMBLE_CPP_SERVER_H_

View file

@ -1,19 +1,20 @@
/* /*
* NimBLEService.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 2, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEService.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 25, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
// A service is identified by a UUID. A service is also the container for one or more characteristics.
#include "nimconfig.h" #include "nimconfig.h"
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEService.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on March 2, 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEService.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Mar 25, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_SERVICE_H_ #ifndef NIMBLE_CPP_SERVICE_H_

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEUUID.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEUUID.cpp * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jun 21, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"
@ -334,4 +337,4 @@ NimBLEUUID::operator std::string() const {
return ble_uuid_to_str(&m_uuid.u, buf); return ble_uuid_to_str(&m_uuid.u, buf);
} // operator std::string } // operator std::string
# endif /* CONFIG_BT_ENABLED */ #endif /* CONFIG_BT_ENABLED */

View file

@ -1,15 +1,18 @@
/* /*
* NimBLEUUID.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 24 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* Originally: * http://www.apache.org/licenses/LICENSE-2.0
* *
* BLEUUID.h * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* Created on: Jun 21, 2017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Author: kolban * See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_UUID_H_ #ifndef NIMBLE_CPP_UUID_H_
@ -61,7 +64,7 @@ class NimBLEUUID {
bool operator==(const NimBLEUUID& rhs) const; bool operator==(const NimBLEUUID& rhs) const;
bool operator!=(const NimBLEUUID& rhs) const; bool operator!=(const NimBLEUUID& rhs) const;
operator std::string() const; operator std::string() const;
private: private:
ble_uuid_any_t m_uuid{}; ble_uuid_any_t m_uuid{};

View file

@ -1,9 +1,18 @@
/* /*
* NimBLEUtils.cpp * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 25 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#include "nimconfig.h" #include "nimconfig.h"

View file

@ -1,9 +1,18 @@
/* /*
* NimBLEUtils.h * Copyright 2020-2024 Ryan Powell <ryan@nable-embedded.io> and
* esp-nimble-cpp, NimBLE-Arduino contributors.
* *
* Created: on Jan 25 2020 * Licensed under the Apache License, Version 2.0 (the "License");
* Author H2zero * you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* *
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/ */
#ifndef NIMBLE_CPP_UTILS_H_ #ifndef NIMBLE_CPP_UTILS_H_