diff --git a/LICENSE b/LICENSE index 58e0745..bc3e3dc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Martijn van Welie +Copyright (c) 2023 Martijn van Welie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/AdvertiseError.kt b/blessed/src/main/java/com/welie/blessed/AdvertiseError.kt index 0502a59..41a90d5 100644 --- a/blessed/src/main/java/com/welie/blessed/AdvertiseError.kt +++ b/blessed/src/main/java/com/welie/blessed/AdvertiseError.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothBytesParser.kt b/blessed/src/main/java/com/welie/blessed/BluetoothBytesParser.kt index d729f4d..b3467f1 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothBytesParser.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothBytesParser.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothCentralManager.kt b/blessed/src/main/java/com/welie/blessed/BluetoothCentralManager.kt index 5444de4..dc3915a 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothCentralManager.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothCentralManager.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothCentralManagerCallback.kt b/blessed/src/main/java/com/welie/blessed/BluetoothCentralManagerCallback.kt index b8b8f25..77cd2aa 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothCentralManagerCallback.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothCentralManagerCallback.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheral.kt b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheral.kt index a9b1588..e3209e5 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheral.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheral.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralCallback.kt b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralCallback.kt index 914570a..105fddc 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralCallback.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralCallback.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManager.kt b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManager.kt index b8a643a..979032f 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManager.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManager.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManagerCallback.kt b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManagerCallback.kt index de30d6c..63c1571 100644 --- a/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManagerCallback.kt +++ b/blessed/src/main/java/com/welie/blessed/BluetoothPeripheralManagerCallback.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/BondState.kt b/blessed/src/main/java/com/welie/blessed/BondState.kt index 715687b..b3b4b7c 100644 --- a/blessed/src/main/java/com/welie/blessed/BondState.kt +++ b/blessed/src/main/java/com/welie/blessed/BondState.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/ConnectionFailedException.kt b/blessed/src/main/java/com/welie/blessed/ConnectionFailedException.kt index 9a9a248..2773810 100644 --- a/blessed/src/main/java/com/welie/blessed/ConnectionFailedException.kt +++ b/blessed/src/main/java/com/welie/blessed/ConnectionFailedException.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed import java.lang.RuntimeException diff --git a/blessed/src/main/java/com/welie/blessed/ConnectionPriority.kt b/blessed/src/main/java/com/welie/blessed/ConnectionPriority.kt index 0558765..589a9b2 100644 --- a/blessed/src/main/java/com/welie/blessed/ConnectionPriority.kt +++ b/blessed/src/main/java/com/welie/blessed/ConnectionPriority.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/ConnectionState.kt b/blessed/src/main/java/com/welie/blessed/ConnectionState.kt index d643a7f..c9d903a 100644 --- a/blessed/src/main/java/com/welie/blessed/ConnectionState.kt +++ b/blessed/src/main/java/com/welie/blessed/ConnectionState.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/Extensions.kt b/blessed/src/main/java/com/welie/blessed/Extensions.kt index 5b7cbda..bf7598f 100644 --- a/blessed/src/main/java/com/welie/blessed/Extensions.kt +++ b/blessed/src/main/java/com/welie/blessed/Extensions.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed import android.bluetooth.BluetoothGattCharacteristic diff --git a/blessed/src/main/java/com/welie/blessed/GattException.kt b/blessed/src/main/java/com/welie/blessed/GattException.kt index 9e45225..e528863 100644 --- a/blessed/src/main/java/com/welie/blessed/GattException.kt +++ b/blessed/src/main/java/com/welie/blessed/GattException.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed class GattException(val status: GattStatus) : RuntimeException("GATT error $status (${status.value})") \ No newline at end of file diff --git a/blessed/src/main/java/com/welie/blessed/GattStatus.kt b/blessed/src/main/java/com/welie/blessed/GattStatus.kt index 1a28ec9..f9d331e 100644 --- a/blessed/src/main/java/com/welie/blessed/GattStatus.kt +++ b/blessed/src/main/java/com/welie/blessed/GattStatus.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/HciStatus.kt b/blessed/src/main/java/com/welie/blessed/HciStatus.kt index a356524..87341fa 100644 --- a/blessed/src/main/java/com/welie/blessed/HciStatus.kt +++ b/blessed/src/main/java/com/welie/blessed/HciStatus.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/Logger.kt b/blessed/src/main/java/com/welie/blessed/Logger.kt index 090b85a..0c059e3 100644 --- a/blessed/src/main/java/com/welie/blessed/Logger.kt +++ b/blessed/src/main/java/com/welie/blessed/Logger.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed import android.util.Log diff --git a/blessed/src/main/java/com/welie/blessed/PeripheralType.kt b/blessed/src/main/java/com/welie/blessed/PeripheralType.kt index 134e851..3f04f14 100644 --- a/blessed/src/main/java/com/welie/blessed/PeripheralType.kt +++ b/blessed/src/main/java/com/welie/blessed/PeripheralType.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/Phy.kt b/blessed/src/main/java/com/welie/blessed/Phy.kt index da7b298..35b25cf 100644 --- a/blessed/src/main/java/com/welie/blessed/Phy.kt +++ b/blessed/src/main/java/com/welie/blessed/Phy.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed data class Phy(val tx: PhyType, val rx: PhyType) \ No newline at end of file diff --git a/blessed/src/main/java/com/welie/blessed/PhyOptions.kt b/blessed/src/main/java/com/welie/blessed/PhyOptions.kt index c2aa899..236b55d 100644 --- a/blessed/src/main/java/com/welie/blessed/PhyOptions.kt +++ b/blessed/src/main/java/com/welie/blessed/PhyOptions.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/PhyType.kt b/blessed/src/main/java/com/welie/blessed/PhyType.kt index f779778..1b1a617 100644 --- a/blessed/src/main/java/com/welie/blessed/PhyType.kt +++ b/blessed/src/main/java/com/welie/blessed/PhyType.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/ReadResponse.kt b/blessed/src/main/java/com/welie/blessed/ReadResponse.kt index d6db42b..213ae16 100644 --- a/blessed/src/main/java/com/welie/blessed/ReadResponse.kt +++ b/blessed/src/main/java/com/welie/blessed/ReadResponse.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed class ReadResponse(val status: GattStatus, val value: ByteArray) \ No newline at end of file diff --git a/blessed/src/main/java/com/welie/blessed/ScanFailure.kt b/blessed/src/main/java/com/welie/blessed/ScanFailure.kt index b46ae3d..5b929e7 100644 --- a/blessed/src/main/java/com/welie/blessed/ScanFailure.kt +++ b/blessed/src/main/java/com/welie/blessed/ScanFailure.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/blessed/src/main/java/com/welie/blessed/ScanMode.kt b/blessed/src/main/java/com/welie/blessed/ScanMode.kt index 789842f..d180059 100644 --- a/blessed/src/main/java/com/welie/blessed/ScanMode.kt +++ b/blessed/src/main/java/com/welie/blessed/ScanMode.kt @@ -1,3 +1,25 @@ +/* + * Copyright (c) 2023 Martijn van Welie + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */ package com.welie.blessed import android.bluetooth.le.ScanSettings diff --git a/blessed/src/main/java/com/welie/blessed/WriteType.kt b/blessed/src/main/java/com/welie/blessed/WriteType.kt index 0ae59a4..51fd7b9 100644 --- a/blessed/src/main/java/com/welie/blessed/WriteType.kt +++ b/blessed/src/main/java/com/welie/blessed/WriteType.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Martijn van Welie + * Copyright (c) 2023 Martijn van Welie * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html index f1f19e8..b239fe9 100644 --- a/docs/allclasses-frame.html +++ b/docs/allclasses-frame.html @@ -2,7 +2,7 @@
- +