Skip to content

Commit 1f79479

Browse files
committed
2 parents 476498c + e0e1e53 commit 1f79479

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

BLETool/UI/EEGViewController.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ class EEGViewController: UITableViewController {
111111
}.catch { _ in
112112
SVProgressHUD.showError(withStatus: "Failed to send 'stop' command!")
113113
}
114+
115+
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: false) { (timer) in
116+
_ = self.commandService.write(data: Data([0x07]), to: .send)
117+
}
114118
} else {
115119
dataList.removeAll()
116120
tableView.reloadData()
@@ -128,6 +132,10 @@ class EEGViewController: UITableViewController {
128132
}.catch { _ in
129133
SVProgressHUD.showError(withStatus: "Failed to send 'start' command!")
130134
}
135+
136+
Timer.scheduledTimer(withTimeInterval: 0.5, repeats: false) { (timer) in
137+
_ = self.commandService.write(data: Data([0x08]), to: .send)
138+
}
131139
}
132140
}
133141

FlowTimeBLE.podspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Pod::Spec.new do |s|
2-
s.name = 'FlowTimeBLE'
3-
s.version = '1.0.0'
4-
s.summary = 'FlowTime BLE 通信库'
2+
s.name = 'EnterBioModuleBLE'
3+
s.version = '1.1.0'
4+
s.summary = 'EnterBioModuleBLE 通信库'
55
s.description = <<-DESC
6-
FlowTime BLE 通信库
6+
EnterBioModuleBLE 通信库
77
DESC
88

99
s.homepage = 'https://github.com/EnterTech'

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
1. add the following to your `Podfile`
4444

4545
~~~swift
46-
pod 'FlowTimeBLE', :git=> "git@github.com:Entertech/Enter-Biomodule-BLE-iOS-SDK.git"
46+
pod 'EnterBioModuleBLE', :git=> "git@github.com:Entertech/Enter-Biomodule-BLE-iOS-SDK.git"
4747
~~~
4848

4949
2. Integrate your dependencies using frameworks: add use_frameworks! to your `Podfile`.

0 commit comments

Comments
 (0)