diff --git a/LICENSE b/LICENSE index 4abe69699..a9063b320 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,21 +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 bundles queue.h 8.5, which is available under the "3-clause BSD" -license. For details, see porting/nimble/include/os/queue.h - -This product partly derives from FreeBSD, which is available under the -"3-clause BSD" license. For details, see: - * porting/nimble/src/os_mbuf.c - -This product bundles Gary S. Brown's CRC32 implementation, which is available -under the following license: - COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or - code or tables extracted from it, as desired without restriction. - -This product bundles tinycrypt, which is available under the "3-clause BSD" -license. For details, and bundled files see: - * ext/tinycrypt/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 000000000..a2ef00762 --- /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 527406fe2..5a6b3eedf 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 292bdaf40..9b615f5fb 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 7b98086c0..2e6cea01b 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 ff649475f..a1eebac8a 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 cdcfd72ee..cf6cf7108 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 5a5660c71..e8d3a7735 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 0cfb0777b..c2372f51d 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 c1485d697..6ae2ccf20 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 1f2ad3adf..149c88f2f 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 ff84913a7..217a5b760 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 0a7a7717e..b268754ec 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 aa8882a90..35c756dc0 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 8fb3b7a8d..f13a3565e 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 24383643f..20e4fc267 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 9ef94ce63..618b01157 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 bc8e571f2..43b9f74bb 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 612a305b1..01d34e4a2 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 f97bd8da7..e5b1383c5 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 cbb5a9b6a..eba7165f7 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 752617ab8..76959b8e1 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 1f0bcad08..5301a8b7b 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 df686d506..bb9b37a6f 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 6f99ec3b8..77c51a43a 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 fd1b93768..8399b22a9 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 e7c699bec..d71081029 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 7bcee3425..8e60a041b 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 3104f6fe1..7421f855a 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 265317974..ecfd4edcd 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 163b35592..55ba770f7 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 e8e273303..0737e7581 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 8de132823..6aafc43be 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 749479f41..fed17ad93 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 0ccdf4163..45bf224c5 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 d2dbf1d8b..c1715f3de 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 64756bc1a..532d814f6 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 cbcc5fb73..14283fdf2 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 ece24b4b8..9d2a17149 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 8e70adec6..c5fe0ff04 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 a9ae2747e..8045788be 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 0ef755a48..e7c49fad1 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 7849b2a75..c3a20e083 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 31ea9c734..61af025aa 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 62b5e2a7c..6194a5c70 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 f1f0a5f24..cbd562466 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 035561a68..2696995a8 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 c7a83a719..577a45f0c 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 13bad3f4e..80e9dea11 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 72527d4fa..c947648c8 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 7863995b4..32f625c1e 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 b8e09c212..f447ff049 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 4819d3970..e56f568e1 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_