File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11Pod ::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'
Original file line number Diff line number Diff line change 43431 . 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
49492 . Integrate your dependencies using frameworks: add use_frameworks! to your ` Podfile ` .
You can’t perform that action at this time.
0 commit comments