Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
d5876fc0
Commit
d5876fc0
authored
Apr 28, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
蓝牙补全
parent
fb7b4689
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
0 deletions
+35
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/HUD/Contents.json
GeliBusinessPlatform/Assets.xcassets/HUD/Contents.json
+6
-0
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/Contents.json
...m/Assets.xcassets/HUD/lianjiezhong.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong.png
...ssets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong@2x.png
...ts.xcassets/HUD/lianjiezhong.imageset/lianjiezhong@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong@3x.png
...ts.xcassets/HUD/lianjiezhong.imageset/lianjiezhong@3x.png
+0
-0
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
.../ViewController/蓝牙连接/BluetoothConnectViewController.swift
+6
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d5876fc0
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/HUD/Contents.json
0 → 100644
View file @
d5876fc0
{
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/Contents.json
0 → 100644
View file @
d5876fc0
{
"images"
:
[
{
"filename"
:
"lianjiezhong.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"lianjiezhong@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"lianjiezhong@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong.png
0 → 100644
View file @
d5876fc0
1.49 KB
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong@2x.png
0 → 100644
View file @
d5876fc0
3.63 KB
GeliBusinessPlatform/Assets.xcassets/HUD/lianjiezhong.imageset/lianjiezhong@3x.png
0 → 100644
View file @
d5876fc0
6.58 KB
GeliBusinessPlatform/ViewController/蓝牙连接/BluetoothConnectViewController.swift
View file @
d5876fc0
...
...
@@ -63,6 +63,11 @@ class BluetoothConnectViewController: BaseViewController,UITableViewDelegate,UIT
}
self
.
selectDataArray
.
insert
(
peripheral
!
,
at
:
0
)
self
.
tableView
.
reloadData
()
HUD
.
flash
(
.
labeledSubSuccess
(
subtitle
:
"连接成功"
),
delay
:
1.5
)
})
baby
?
.
setBlockOnFailToConnect
({
(
central
,
peripheral
,
error
)
in
HUD
.
flash
(
.
labeledSubError
(
subtitle
:
"连接失败"
),
delay
:
1.5
)
})
...
...
@@ -92,6 +97,7 @@ class BluetoothConnectViewController: BaseViewController,UITableViewDelegate,UIT
self
.
baby
?
.
cancelAllPeripheralsConnection
()
}
else
{
HUD
.
show
(
.
labeledProgress
(
title
:
""
,
subtitle
:
"连接中"
))
let
currPeripheral
:
CBPeripheral
=
self
.
peripheralDataArray
[
indexPath
.
row
]
print
(
"准备连接的设备:
\(
currPeripheral
.
name
)
"
)
self
.
baby
?
.
having
(
currPeripheral
)?
.
and
()?
.
channel
(
"peripheralView"
)?
.
then
()?
.
connectToPeripherals
()?
.
begin
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment