Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
socket-door-lock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
homebridge
socket-door-lock
Commits
dce04c2e
Commit
dce04c2e
authored
Apr 11, 2019
by
Administrator
👑
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed
parent
8063a6d7
Pipeline
#43
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
README.md
README.md
+1
-1
index.js
index.js
+4
-4
No files found.
README.md
View file @
dce04c2e
# homebridge-slide-bridge
\ No newline at end of file
# homebridge socket door lock
\ No newline at end of file
index.js
View file @
dce04c2e
...
...
@@ -5,20 +5,20 @@ module.exports = function (homebridge) {
hap
=
homebridge
.
hap
;
UUIDGen
=
homebridge
.
hap
.
uuid
;
homebridge
.
registerPlatform
(
"
homebridge-slide-bridge"
,
"slide-bridge"
,
SlideBridge
,
true
);
homebridge
.
registerPlatform
(
"
socket-door-lock"
,
"door-lock"
,
doorLock
,
true
);
}
function
SlideBridge
(
log
,
config
,
api
)
{
function
doorLock
(
log
,
config
,
api
)
{
var
self
=
this
;
self
.
log
=
log
;
self
.
config
=
config
||
{};
}
SlideBridge
.
prototype
.
configureAccessory
=
function
(
accessory
)
{
doorLock
.
prototype
.
configureAccessory
=
function
(
accessory
)
{
// Won't be invoked
}
SlideBridge
.
prototype
.
didFinishLaunching
=
function
()
{
doorLock
.
prototype
.
didFinishLaunching
=
function
()
{
self
.
log
(
"Hello I am a running app"
);
}
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