Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jensen
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
Skye Yu
jensen
Commits
550771b5
Commit
550771b5
authored
Dec 10, 2024
by
Skye Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: send schedule info
parent
7e26c76b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.ts
index.ts
+1
-1
jensen.js
src/jensen.js
+2
-2
No files found.
index.ts
View file @
550771b5
...
...
@@ -116,7 +116,7 @@ declare class JensenType {
seconds
?:
number
,
)
=>
Promise
<
ReturnStruct
[
"common"
]
>
;
writeSerialNumber
:
(
sn
:
string
)
=>
Promise
<
ReturnStruct
[
"common"
]
>
;
sendScheduleIn
g
o
:
(
info
:
ScheduleInfo
)
=>
Promise
<
ReturnStruct
[
"common"
]
>
;
sendScheduleIn
f
o
:
(
info
:
ScheduleInfo
)
=>
Promise
<
ReturnStruct
[
"common"
]
>
;
}
//@ts-ignore
...
...
src/jensen.js
View file @
550771b5
import
{
Logger
,
Logger
as
internalLogger
}
from
'./utils/utils'
;
import
{
Logger
,
Logger
as
internalLogger
,
getTimeStr
}
from
'./utils/utils'
;
const
QUERY_DEVICE_INFO
=
0x01
;
const
QUERY_DEVICE_TIME
=
0x02
;
...
...
@@ -902,7 +902,7 @@ const commonMessageParser = (msg) => {
return
{
result
:
msg
.
body
[
0
]
===
0x00
?
'success'
:
'failed'
};
};
Jensen
.
prototype
.
sendSchedule
=
function
(
info
)
{
Jensen
.
prototype
.
sendSchedule
Info
=
function
(
info
)
{
const
startDate
=
this
.
to_bcd
(
getTimeStr
(
info
.
startDate
));
const
endDate
=
this
.
to_bcd
(
getTimeStr
(
info
.
endDate
));
const
keyAnswer
=
[
3
,
7
,
4
,
0
,
0
,
0
,
0
,
0
];
...
...
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