-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from LoopKit/dev
Version 0.8.0
- Loading branch information
Showing
18 changed files
with
230 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// Data.swift | ||
// xDripG5 | ||
// | ||
// Created by Nate Racklyeft on 9/18/16. | ||
// Copyright © 2016 Nathan Racklyeft. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
extension Data { | ||
var hexadecimalString: String { | ||
let string = NSMutableString(capacity: count * 2) | ||
|
||
for byte in self { | ||
string.appendFormat("%02x", byte) | ||
} | ||
|
||
return string as String | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |s| | ||
s.name = "xDripG5" | ||
s.version = "0.7.0" | ||
s.version = "0.8.0" | ||
s.summary = "An interface for communicating with the G5 glucose transmitter over Bluetooth." | ||
|
||
s.description = <<-DESC | ||
|
@@ -11,11 +11,10 @@ By using this framework in your own app, you can get access to your glucose read | |
Please note this project is neither created nor backed by Dexcom, Inc. Use of this software is not intended for therapy. | ||
DESC | ||
|
||
s.homepage = "https://github.com/loudnate/xDripG5" | ||
s.homepage = "https://github.com/LoopKit/xDripG5" | ||
s.license = 'MIT' | ||
s.author = { "Nathan Racklyeft" => "[email protected]" } | ||
s.source = { :git => "https://github.com/loudnate/xDripG5.git", :tag => s.version.to_s } | ||
s.social_media_url = 'https://twitter.com/loudnate' | ||
s.source = { :git => "https://github.com/LoopKit/xDripG5.git", :tag => s.version.to_s } | ||
|
||
s.platform = :ios, '9.3' | ||
s.requires_arc = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// CalibrationDataRxMessage.swift | ||
// Pods | ||
// | ||
// Created by Nate Racklyeft on 9/18/16. | ||
// | ||
// | ||
|
||
import Foundation | ||
|
||
|
||
struct CalibrationDataRxMessage: TransmitterRxMessage { | ||
static let opcode: UInt8 = 0x33 | ||
|
||
init?(data: Data) { | ||
guard data.count == 19 && data.crcValid() else { | ||
return nil | ||
} | ||
|
||
guard data[0] == type(of: self).opcode else { | ||
return nil | ||
} | ||
} | ||
} |
Oops, something went wrong.