diff --git a/LICENSE b/LICENSE index ff16276..a9063b3 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier 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"); 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. See the License for the specific language governing permissions and limitations under the License. - - This product partly derives from esp32-snippets; Copyright 2017 Neil Kolban. \ No newline at end of file diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..a2ef007 --- /dev/null +++ b/NOTICE @@ -0,0 +1,10 @@ +esp-nimble-cpp +NimBLE-Arduino +Copyright 2020-2024 Ryan Powell 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. diff --git a/src/NimBLE2904.cpp b/src/NimBLE2904.cpp index 527406f..5a6b3ee 100644 --- a/src/NimBLE2904.cpp +++ b/src/NimBLE2904.cpp @@ -1,15 +1,18 @@ /* - * NimBLE2904.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 13, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLE2904.cpp - * - * Created on: Dec 23, 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" diff --git a/src/NimBLE2904.h b/src/NimBLE2904.h index 292bdaf..9b615f5 100644 --- a/src/NimBLE2904.h +++ b/src/NimBLE2904.h @@ -1,15 +1,18 @@ /* - * NimBLE2904.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 13, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLE2904.h - * - * Created on: Dec 23, 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. */ #ifndef NIMBLE_CPP_2904_H_ @@ -23,8 +26,8 @@ struct NimBLE2904Data { uint8_t m_format{0}; int8_t m_exponent{0}; - 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 + 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 uint16_t m_description{0}; // unknown description } __attribute__((packed)); diff --git a/src/NimBLEAddress.cpp b/src/NimBLEAddress.cpp index 7b98086..2e6cea0 100644 --- a/src/NimBLEAddress.cpp +++ b/src/NimBLEAddress.cpp @@ -1,16 +1,20 @@ /* - * NimBLEAddress.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEAddress.cpp - * - * Created on: Jul 2, 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" #if defined(CONFIG_BT_ENABLED) diff --git a/src/NimBLEAddress.h b/src/NimBLEAddress.h index ff64947..a1eebac 100644 --- a/src/NimBLEAddress.h +++ b/src/NimBLEAddress.h @@ -1,15 +1,18 @@ /* - * NimBLEAddress.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEAddress.h - * - * Created on: Jul 2, 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. */ #ifndef NIMBLE_CPP_ADDRESS_H_ @@ -59,8 +62,8 @@ class NimBLEAddress : private ble_addr_t { const NimBLEAddress& reverseByteOrder(); bool operator==(const NimBLEAddress& rhs) const; bool operator!=(const NimBLEAddress& rhs) const; - operator std::string() const; - operator uint64_t() const; + operator std::string() const; + operator uint64_t() const; }; #endif /* CONFIG_BT_ENABLED */ diff --git a/src/NimBLEAdvertisedDevice.cpp b/src/NimBLEAdvertisedDevice.cpp index cdcfd72..cf6cf71 100644 --- a/src/NimBLEAdvertisedDevice.cpp +++ b/src/NimBLEAdvertisedDevice.cpp @@ -1,15 +1,18 @@ /* - * NimBLEAdvertisedDevice.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEAdvertisedDevice.cpp - * - * Created on: Jul 3, 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" diff --git a/src/NimBLEAdvertisedDevice.h b/src/NimBLEAdvertisedDevice.h index 5a5660c..e8d3a77 100644 --- a/src/NimBLEAdvertisedDevice.h +++ b/src/NimBLEAdvertisedDevice.h @@ -1,15 +1,18 @@ /* - * NimBLEAdvertisedDevice.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEAdvertisedDevice.h - * - * Created on: Jul 3, 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. */ #ifndef NIMBLE_CPP_ADVERTISED_DEVICE_H_ diff --git a/src/NimBLEAdvertisementData.cpp b/src/NimBLEAdvertisementData.cpp index 0cfb077..c2372f5 100644 --- a/src/NimBLEAdvertisementData.cpp +++ b/src/NimBLEAdvertisementData.cpp @@ -1,9 +1,18 @@ /* - * NimBLEAdvertisementData.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on November 24, 2024 - * Author H2zero + * 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. */ #include "nimconfig.h" diff --git a/src/NimBLEAdvertisementData.h b/src/NimBLEAdvertisementData.h index c1485d6..6ae2ccf 100644 --- a/src/NimBLEAdvertisementData.h +++ b/src/NimBLEAdvertisementData.h @@ -1,9 +1,18 @@ /* - * NimBLEAdvertisementData.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on November 24, 2024 - * Author H2zero + * 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 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) || \ defined(_DOXYGEN_) -#include -#include -#include +# include +# include +# include class NimBLEUUID; /** diff --git a/src/NimBLEAdvertising.cpp b/src/NimBLEAdvertising.cpp index 1f2ad3a..149c88f 100644 --- a/src/NimBLEAdvertising.cpp +++ b/src/NimBLEAdvertising.cpp @@ -1,17 +1,18 @@ /* - * NimBLEAdvertising.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 3, 2020 - * Author H2zero + * 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 * - * Originally: - * - * BLEAdvertising.cpp - * - * This class encapsulates advertising a BLE Server. - * Created on: Jun 21, 2017 - * Author: kolban + * 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" diff --git a/src/NimBLEAdvertising.h b/src/NimBLEAdvertising.h index ff84913..217a5b7 100644 --- a/src/NimBLEAdvertising.h +++ b/src/NimBLEAdvertising.h @@ -1,15 +1,18 @@ /* - * NimBLEAdvertising.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 3, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEAdvertising.h - * - * 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. */ #ifndef NIMBLE_CPP_ADVERTISING_H_ diff --git a/src/NimBLEAttValue.cpp b/src/NimBLEAttValue.cpp index 0a7a771..b268754 100644 --- a/src/NimBLEAttValue.cpp +++ b/src/NimBLEAttValue.cpp @@ -1,9 +1,18 @@ /* - * NimBLEAttValue.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on July 17, 2024 - * Author H2zero + * 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. */ #include "nimconfig.h" @@ -32,8 +41,7 @@ NimBLEAttValue::NimBLEAttValue(uint16_t init_len, uint16_t max_len) } // Value constructor implementation. -NimBLEAttValue::NimBLEAttValue(const uint8_t *value, uint16_t len, uint16_t max_len) -: NimBLEAttValue(len, max_len) { +NimBLEAttValue::NimBLEAttValue(const uint8_t* value, uint16_t len, uint16_t max_len) : NimBLEAttValue(len, max_len) { memcpy(m_attr_value, value, len); m_attr_value[len] = '\0'; m_attr_len = len; diff --git a/src/NimBLEAttValue.h b/src/NimBLEAttValue.h index aa8882a..35c756d 100644 --- a/src/NimBLEAttValue.h +++ b/src/NimBLEAttValue.h @@ -1,9 +1,18 @@ /* - * NimBLEAttValue.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 18, 2021 - * Author H2zero + * 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 NIMBLE_CPP_ATTVALUE_H diff --git a/src/NimBLEAttribute.h b/src/NimBLEAttribute.h index 8fb3b7a..f13a356 100644 --- a/src/NimBLEAttribute.h +++ b/src/NimBLEAttribute.h @@ -1,8 +1,18 @@ /* - * NimBLEAttribute.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on July 28 2024 - * Author H2zero + * 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 NIMBLE_CPP_ATTRIBUTE_H_ @@ -43,7 +53,7 @@ class NimBLEAttribute { ~NimBLEAttribute() = default; 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) diff --git a/src/NimBLEBeacon.cpp b/src/NimBLEBeacon.cpp index 2438364..20e4fc2 100644 --- a/src/NimBLEBeacon.cpp +++ b/src/NimBLEBeacon.cpp @@ -1,15 +1,18 @@ /* - * NimBLEBeacon.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 15 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEBeacon.cpp - * - * Created on: Jan 4, 2018 - * 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" diff --git a/src/NimBLEBeacon.h b/src/NimBLEBeacon.h index 9ef94ce..618b011 100644 --- a/src/NimBLEBeacon.h +++ b/src/NimBLEBeacon.h @@ -1,15 +1,18 @@ /* - * NimBLEBeacon.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 15 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEBeacon.h - * - * Created on: Jan 4, 2018 - * 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. */ #ifndef NIMBLE_CPP_BEACON_H_ diff --git a/src/NimBLECharacteristic.cpp b/src/NimBLECharacteristic.cpp index bc8e571..43b9f74 100644 --- a/src/NimBLECharacteristic.cpp +++ b/src/NimBLECharacteristic.cpp @@ -1,13 +1,18 @@ /* - * NimBLECharacteristic.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 3, 2020 - * Author H2zero + * 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 * - * BLECharacteristic.cpp + * http://www.apache.org/licenses/LICENSE-2.0 * - * Created on: Jun 22, 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" diff --git a/src/NimBLECharacteristic.h b/src/NimBLECharacteristic.h index 612a305..01d34e4 100644 --- a/src/NimBLECharacteristic.h +++ b/src/NimBLECharacteristic.h @@ -1,14 +1,18 @@ /* - * NimBLECharacteristic.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 3, 2020 - * Author H2zero + * 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 * - * Originally: - * BLECharacteristic.h + * http://www.apache.org/licenses/LICENSE-2.0 * - * Created on: Jun 22, 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. */ #ifndef NIMBLE_CPP_CHARACTERISTIC_H_ diff --git a/src/NimBLEClient.cpp b/src/NimBLEClient.cpp index f97bd8d..e5b1383 100644 --- a/src/NimBLEClient.cpp +++ b/src/NimBLEClient.cpp @@ -1,14 +1,18 @@ /* - * NimBLEClient.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 26 2020 - * Author H2zero + * 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 * - * Originally: - * BLEClient.cpp + * http://www.apache.org/licenses/LICENSE-2.0 * - * Created on: Mar 22, 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" @@ -304,7 +308,7 @@ bool NimBLEClient::secureConnection(bool async) const { int rc = 0; if (async && !NimBLEDevice::startSecurity(m_connHandle, &rc)) { - m_lastErr = rc; + m_lastErr = rc; m_asyncSecureAttempt = 0; return false; } diff --git a/src/NimBLEClient.h b/src/NimBLEClient.h index cbb5a9b..eba7165 100644 --- a/src/NimBLEClient.h +++ b/src/NimBLEClient.h @@ -1,14 +1,18 @@ /* - * NimBLEClient.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 26 2020 - * Author H2zero + * 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 * - * Originally: - * BLEClient.h + * http://www.apache.org/licenses/LICENSE-2.0 * - * Created on: Mar 22, 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. */ #ifndef NIMBLE_CPP_CLIENT_H_ diff --git a/src/NimBLEConnInfo.h b/src/NimBLEConnInfo.h index 752617a..76959b8 100644 --- a/src/NimBLEConnInfo.h +++ b/src/NimBLEConnInfo.h @@ -1,3 +1,20 @@ +/* + * Copyright 2020-2024 Ryan Powell 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_ #define NIMBLECONNINFO_H_ @@ -60,7 +77,7 @@ class NimBLEConnInfo { friend class NimBLEDescriptor; ble_gap_conn_desc m_desc{}; - NimBLEConnInfo(){}; + NimBLEConnInfo() {}; NimBLEConnInfo(ble_gap_conn_desc desc) { m_desc = desc; } }; #endif diff --git a/src/NimBLEDescriptor.cpp b/src/NimBLEDescriptor.cpp index 1f0bcad..5301a8b 100644 --- a/src/NimBLEDescriptor.cpp +++ b/src/NimBLEDescriptor.cpp @@ -1,15 +1,18 @@ /* - * NimBLEDescriptor.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 10, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEDescriptor.cpp - * - * Created on: Jun 22, 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" diff --git a/src/NimBLEDescriptor.h b/src/NimBLEDescriptor.h index df686d5..bb9b37a 100644 --- a/src/NimBLEDescriptor.h +++ b/src/NimBLEDescriptor.h @@ -1,15 +1,18 @@ /* - * NimBLEDescriptor.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 10, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEDescriptor.h - * - * Created on: Jun 22, 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. */ #ifndef NIMBLE_CPP_DESCRIPTOR_H_ diff --git a/src/NimBLEDevice.cpp b/src/NimBLEDevice.cpp index 6f99ec3..77c51a4 100644 --- a/src/NimBLEDevice.cpp +++ b/src/NimBLEDevice.cpp @@ -1,15 +1,18 @@ /* - * NimBLEDevice.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEDevice.cpp - * - * Created on: Mar 16, 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" diff --git a/src/NimBLEDevice.h b/src/NimBLEDevice.h index fd1b937..8399b22 100644 --- a/src/NimBLEDevice.h +++ b/src/NimBLEDevice.h @@ -1,15 +1,18 @@ /* - * NimBLEDevice.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEDevice.h - * - * Created on: Mar 16, 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. */ #ifndef NIMBLE_CPP_DEVICE_H_ diff --git a/src/NimBLEEddystoneTLM.cpp b/src/NimBLEEddystoneTLM.cpp index e7c699b..d710810 100644 --- a/src/NimBLEEddystoneTLM.cpp +++ b/src/NimBLEEddystoneTLM.cpp @@ -1,15 +1,18 @@ /* - * NimBLEEddystoneTLM.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 15 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEEddystoneTLM.cpp - * - * Created on: Mar 12, 2018 - * Author: pcbreflux + * 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" diff --git a/src/NimBLEEddystoneTLM.h b/src/NimBLEEddystoneTLM.h index 7bcee34..8e60a04 100644 --- a/src/NimBLEEddystoneTLM.h +++ b/src/NimBLEEddystoneTLM.h @@ -1,15 +1,18 @@ /* - * NimBLEEddystoneTLM.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 15 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEEddystoneTLM.h - * - * Created on: Mar 12, 2018 - * Author: pcbreflux + * 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_EDDYSTONETLM_H_ diff --git a/src/NimBLEExtAdvertising.cpp b/src/NimBLEExtAdvertising.cpp index 3104f6f..7421f85 100644 --- a/src/NimBLEExtAdvertising.cpp +++ b/src/NimBLEExtAdvertising.cpp @@ -1,8 +1,18 @@ /* - * NimBLEExtAdvertising.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on February 6, 2022 - * Author H2zero + * 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. */ #include "nimconfig.h" diff --git a/src/NimBLEExtAdvertising.h b/src/NimBLEExtAdvertising.h index 2653179..ecfd4ed 100644 --- a/src/NimBLEExtAdvertising.h +++ b/src/NimBLEExtAdvertising.h @@ -1,8 +1,18 @@ /* - * NimBLEExtAdvertising.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on February 6, 2022 - * Author H2zero + * 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 NIMBLE_CPP_EXTADVERTISING_H_ diff --git a/src/NimBLEHIDDevice.cpp b/src/NimBLEHIDDevice.cpp index 163b355..55ba770 100644 --- a/src/NimBLEHIDDevice.cpp +++ b/src/NimBLEHIDDevice.cpp @@ -1,15 +1,18 @@ /* - * NimBLEHIDDevice.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Oct 06 2020 - * Author wakwak-koba + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEHIDDevice.cpp - * - * Created on: Jan 03, 2018 - * Author: chegewara + * 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" diff --git a/src/NimBLEHIDDevice.h b/src/NimBLEHIDDevice.h index e8e2733..0737e75 100644 --- a/src/NimBLEHIDDevice.h +++ b/src/NimBLEHIDDevice.h @@ -1,15 +1,18 @@ /* - * NimBLEHIDDevice.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Oct 06 2020 - * Author wakwak-koba + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEHIDDevice.h - * - * Created on: Jan 03, 2018 - * Author: chegewara + * 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_HIDDEVICE_H_ diff --git a/src/NimBLELocalAttribute.h b/src/NimBLELocalAttribute.h index 8de1328..6aafc43 100644 --- a/src/NimBLELocalAttribute.h +++ b/src/NimBLELocalAttribute.h @@ -1,8 +1,18 @@ /* - * NimBLELocalAttribute.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on July 28 2024 - * Author H2zero + * 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 NIMBLE_CPP_LOCAL_ATTRIBUTE_H_ diff --git a/src/NimBLELocalValueAttribute.h b/src/NimBLELocalValueAttribute.h index 749479f..fed17ad 100644 --- a/src/NimBLELocalValueAttribute.h +++ b/src/NimBLELocalValueAttribute.h @@ -1,8 +1,18 @@ /* - * NimBLELocalValueAttribute.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on July 28 2024 - * Author H2zero + * 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 NIMBLE_LOCAL_VALUE_ATTRIBUTE_H_ diff --git a/src/NimBLELog.h b/src/NimBLELog.h index 0ccdf41..45bf224 100644 --- a/src/NimBLELog.h +++ b/src/NimBLELog.h @@ -1,9 +1,18 @@ /* - * NimBLELog.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Feb 24 2020 - * Author H2zero + * 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 MAIN_NIMBLELOG_H_ #define MAIN_NIMBLELOG_H_ diff --git a/src/NimBLERemoteCharacteristic.cpp b/src/NimBLERemoteCharacteristic.cpp index d2dbf1d..c1715f3 100644 --- a/src/NimBLERemoteCharacteristic.cpp +++ b/src/NimBLERemoteCharacteristic.cpp @@ -1,15 +1,18 @@ /* - * NimBLERemoteCharacteristic.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 27 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLERemoteCharacteristic.cpp - * - * Created on: Mar 16, 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" diff --git a/src/NimBLERemoteCharacteristic.h b/src/NimBLERemoteCharacteristic.h index 64756bc..532d814 100644 --- a/src/NimBLERemoteCharacteristic.h +++ b/src/NimBLERemoteCharacteristic.h @@ -1,15 +1,18 @@ /* - * NimBLERemoteCharacteristic.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 27 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLERemoteCharacteristic.h - * - * Created on: Jul 8, 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. */ #ifndef NIMBLE_CPP_REMOTE_CHARACTERISTIC_H_ diff --git a/src/NimBLERemoteDescriptor.cpp b/src/NimBLERemoteDescriptor.cpp index cbcc5fb..14283fd 100644 --- a/src/NimBLERemoteDescriptor.cpp +++ b/src/NimBLERemoteDescriptor.cpp @@ -1,15 +1,18 @@ /* - * NimBLERemoteDescriptor.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 27 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLERemoteDescriptor.cpp - * - * Created on: Jul 8, 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" @@ -25,7 +28,8 @@ */ NimBLERemoteDescriptor::NimBLERemoteDescriptor(const NimBLERemoteCharacteristic* pRemoteCharacteristic, 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. diff --git a/src/NimBLERemoteDescriptor.h b/src/NimBLERemoteDescriptor.h index ece24b4..9d2a171 100644 --- a/src/NimBLERemoteDescriptor.h +++ b/src/NimBLERemoteDescriptor.h @@ -1,15 +1,18 @@ /* - * NimBLERemoteDescriptor.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 27 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLERemoteDescriptor.h - * - * Created on: Jul 8, 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. */ #ifndef NIMBLE_CPP_REMOTE_DESCRIPTOR_H_ diff --git a/src/NimBLERemoteService.cpp b/src/NimBLERemoteService.cpp index 8e70ade..c5fe0ff 100644 --- a/src/NimBLERemoteService.cpp +++ b/src/NimBLERemoteService.cpp @@ -1,15 +1,18 @@ /* - * NimBLERemoteService.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 27 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLERemoteService.cpp - * - * Created on: Jul 8, 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" @@ -148,7 +151,6 @@ int NimBLERemoteService::characteristicDiscCB(uint16_t conn_handle, auto pTaskData = (NimBLETaskData*)arg; const auto pSvc = (NimBLERemoteService*)pTaskData->m_pInstance; - if (error->status == BLE_HS_ENOTCONN) { NIMBLE_LOGE(LOG_TAG, "<< Characteristic Discovery; Not connected"); NimBLEUtils::taskRelease(*pTaskData, error->status); diff --git a/src/NimBLERemoteService.h b/src/NimBLERemoteService.h index a9ae274..8045788 100644 --- a/src/NimBLERemoteService.h +++ b/src/NimBLERemoteService.h @@ -1,15 +1,18 @@ /* - * NimBLERemoteService.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 27 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLERemoteService.h - * - * Created on: Jul 8, 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. */ #ifndef NIMBLE_CPP_REMOTE_SERVICE_H_ diff --git a/src/NimBLERemoteValueAttribute.cpp b/src/NimBLERemoteValueAttribute.cpp index 0ef755a..e7c49fa 100644 --- a/src/NimBLERemoteValueAttribute.cpp +++ b/src/NimBLERemoteValueAttribute.cpp @@ -1,8 +1,18 @@ /* - * NimBLERemoteValueAttribute.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on July 28 2024 - * Author H2zero + * 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. */ #include "nimconfig.h" diff --git a/src/NimBLERemoteValueAttribute.h b/src/NimBLERemoteValueAttribute.h index 7849b2a..c3a20e0 100644 --- a/src/NimBLERemoteValueAttribute.h +++ b/src/NimBLERemoteValueAttribute.h @@ -1,8 +1,18 @@ /* - * NimBLERemoteValueAttribute.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on July 28 2024 - * Author H2zero + * 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 NIMBLE_CPP_REMOTE_VALUE_ATTRIBUTE_H_ diff --git a/src/NimBLEScan.cpp b/src/NimBLEScan.cpp index 31ea9c7..61af025 100644 --- a/src/NimBLEScan.cpp +++ b/src/NimBLEScan.cpp @@ -1,15 +1,18 @@ /* - * NimBLEScan.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEScan.cpp - * - * Created on: Jul 1, 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" diff --git a/src/NimBLEScan.h b/src/NimBLEScan.h index 62b5e2a..6194a5c 100644 --- a/src/NimBLEScan.h +++ b/src/NimBLEScan.h @@ -1,16 +1,20 @@ /* - * NimBLEScan.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEScan.h - * - * Created on: Jul 1, 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. */ + #ifndef NIMBLE_CPP_SCAN_H_ #define NIMBLE_CPP_SCAN_H_ diff --git a/src/NimBLEServer.cpp b/src/NimBLEServer.cpp index f1f0a5f..cbd5624 100644 --- a/src/NimBLEServer.cpp +++ b/src/NimBLEServer.cpp @@ -1,15 +1,18 @@ /* - * NimBLEServer.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 2, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEServer.cpp - * - * Created on: Apr 16, 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" diff --git a/src/NimBLEServer.h b/src/NimBLEServer.h index 035561a..2696995 100644 --- a/src/NimBLEServer.h +++ b/src/NimBLEServer.h @@ -1,15 +1,18 @@ /* - * NimBLEServer.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 2, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEServer.h - * - * Created on: Apr 16, 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. */ #ifndef NIMBLE_CPP_SERVER_H_ diff --git a/src/NimBLEService.cpp b/src/NimBLEService.cpp index c7a83a7..577a45f 100644 --- a/src/NimBLEService.cpp +++ b/src/NimBLEService.cpp @@ -1,19 +1,20 @@ /* - * NimBLEService.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 2, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEService.cpp - * - * Created on: Mar 25, 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. */ -// A service is identified by a UUID. A service is also the container for one or more characteristics. - #include "nimconfig.h" #if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) diff --git a/src/NimBLEService.h b/src/NimBLEService.h index 13bad3f..80e9dea 100644 --- a/src/NimBLEService.h +++ b/src/NimBLEService.h @@ -1,15 +1,18 @@ /* - * NimBLEService.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on March 2, 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEService.h - * - * Created on: Mar 25, 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. */ #ifndef NIMBLE_CPP_SERVICE_H_ diff --git a/src/NimBLEUUID.cpp b/src/NimBLEUUID.cpp index 72527d4..c947648 100644 --- a/src/NimBLEUUID.cpp +++ b/src/NimBLEUUID.cpp @@ -1,15 +1,18 @@ /* - * NimBLEUUID.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEUUID.cpp - * - * 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" @@ -334,4 +337,4 @@ NimBLEUUID::operator std::string() const { return ble_uuid_to_str(&m_uuid.u, buf); } // operator std::string -# endif /* CONFIG_BT_ENABLED */ +#endif /* CONFIG_BT_ENABLED */ diff --git a/src/NimBLEUUID.h b/src/NimBLEUUID.h index 7863995..32f625c 100644 --- a/src/NimBLEUUID.h +++ b/src/NimBLEUUID.h @@ -1,15 +1,18 @@ /* - * NimBLEUUID.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 24 2020 - * Author H2zero + * 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 * - * Originally: + * http://www.apache.org/licenses/LICENSE-2.0 * - * BLEUUID.h - * - * 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. */ #ifndef NIMBLE_CPP_UUID_H_ @@ -61,7 +64,7 @@ class NimBLEUUID { bool operator==(const NimBLEUUID& rhs) const; bool operator!=(const NimBLEUUID& rhs) const; - operator std::string() const; + operator std::string() const; private: ble_uuid_any_t m_uuid{}; diff --git a/src/NimBLEUtils.cpp b/src/NimBLEUtils.cpp index b8e09c2..f447ff0 100644 --- a/src/NimBLEUtils.cpp +++ b/src/NimBLEUtils.cpp @@ -1,9 +1,18 @@ /* - * NimBLEUtils.cpp + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 25 2020 - * Author H2zero + * 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. */ #include "nimconfig.h" diff --git a/src/NimBLEUtils.h b/src/NimBLEUtils.h index 4819d39..e56f568 100644 --- a/src/NimBLEUtils.h +++ b/src/NimBLEUtils.h @@ -1,9 +1,18 @@ /* - * NimBLEUtils.h + * Copyright 2020-2024 Ryan Powell and + * esp-nimble-cpp, NimBLE-Arduino contributors. * - * Created: on Jan 25 2020 - * Author H2zero + * 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 NIMBLE_CPP_UTILS_H_