From 170a141c3671d2b7099aaae0efa15a55bfaf727f Mon Sep 17 00:00:00 2001 From: pllearns Date: Wed, 8 Apr 2020 13:14:17 -0700 Subject: [PATCH] fix and update --- README.md | 2 +- Source/BleInterface/XyoPipeCharacteristic.swift | 2 +- Source/BleInterface/data/XyoInputStream.swift | 2 +- sdk-xyo-swift.podspec | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 41c4064..1113897 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Include the library in your Podfile ```Podfile target 'YourAppName' do - pod 'sdk-xyo-swift', '1.0.14' + pod 'sdk-xyo-swift', '1.0.16' ``` diff --git a/Source/BleInterface/XyoPipeCharacteristic.swift b/Source/BleInterface/XyoPipeCharacteristic.swift index 3436efc..1efe0b2 100644 --- a/Source/BleInterface/XyoPipeCharacteristic.swift +++ b/Source/BleInterface/XyoPipeCharacteristic.swift @@ -81,7 +81,7 @@ class XyoPipeCharacteristic : XYMutableCharacteristic, XyoGattServerLisitener { return false } - let catData = buffer.copyRangeOf(from: 4, toEnd: buffer.getSize()) + let catData = buffer.copyRangeOf(from: 4, to: buffer.getSize()) let advPacket = XyoAdvertisePacket(data: catData.toByteArray()) let pipe = XyoGattServerNetworkPipe(initiationData: advPacket,peripheral: peripheral,centrel: request.central, char: cbCharacteristic, listener: self) diff --git a/Source/BleInterface/data/XyoInputStream.swift b/Source/BleInterface/data/XyoInputStream.swift index 37c9dc7..a8d1c7d 100644 --- a/Source/BleInterface/data/XyoInputStream.swift +++ b/Source/BleInterface/data/XyoInputStream.swift @@ -61,7 +61,7 @@ public class XyoInputStream { /// Checks to see if the currentBuffer is ready to to be added to the donePackets queue. private func checkDone () { if (nextWaitingSize ?? 0 <= currentBuffer?.getSize() ?? 4) { - let donePacket = currentBuffer?.copyRangeOf(from: 4, toEnd: (Int(nextWaitingSize ?? 4))).toByteArray() ?? [] + let donePacket = currentBuffer?.copyRangeOf(from: 4, to: (Int(nextWaitingSize ?? 4))).toByteArray() ?? [] donePackets.append(donePacket) } } diff --git a/sdk-xyo-swift.podspec b/sdk-xyo-swift.podspec index 7cee96e..3b12c76 100644 --- a/sdk-xyo-swift.podspec +++ b/sdk-xyo-swift.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'sdk-xyo-swift' - s.version = '1.0.15' + s.version = '1.0.16' s.summary = 'An easy to use XYO Platform wrapper for swift developers.' s.description = <<-DESC