Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
51588aed
Commit
51588aed
authored
Sep 27, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20200927
parent
253f2881
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
27 deletions
+9
-27
platform/zigbee/app/builder/Z3GatewayHost/cli.c
platform/zigbee/app/builder/Z3GatewayHost/cli.c
+3
-3
platform/zigbee/app/builder/Z3GatewayHost/enums.h
platform/zigbee/app/builder/Z3GatewayHost/enums.h
+1
-1
platform/zigbee/app/builder/Z3GatewayHost/yjq_ezsp.c
platform/zigbee/app/builder/Z3GatewayHost/yjq_ezsp.c
+5
-23
No files found.
platform/zigbee/app/builder/Z3GatewayHost/cli.c
View file @
51588aed
platform/zigbee/app/builder/Z3GatewayHost/enums.h
View file @
51588aed
platform/zigbee/app/builder/Z3GatewayHost/yjq_ezsp.c
View file @
51588aed
...
...
@@ -89,6 +89,8 @@ void kk_read_ncp_configuration_without_memory_allocation(void)
extern
void
kk_print_network_info
(
void
);
extern
void
test_123
(
int
val
);
extern
void
kk_ota_test111
();
extern
void
kk_ota_test123123123
();
void
kk_message_process
(
char
*
messageString
)
{
...
...
@@ -111,30 +113,10 @@ void kk_message_process(char *messageString)
}
if
(
MEMCOMPARE
(
messageString
,
"AT+TEST1
\r\n
"
,
len
)
==
0
){
uint16_t
h
;
unsigned
char
s
,
l
;
RGB_to_HSL
(
100
,
150
,
200
,
&
h
,
&
s
,
&
l
);
emberAfAppPrintln
(
"%d,%d,%d"
,
h
,
s
,
l
);
emberAfAppPrintln
(
"%d,%d,%d"
,
h
*
254
/
360
,
s
*
254
/
100
,
l
);
kk_device_table_s
*
dev
=
kk_device_find_by_node
(
0x5996
);
dev
->
manage
.
dev
.
ColorLighting
.
color
.
HSL
.
L
=
l
;
zclLevel_MoveToLevel
(
0x5996
,
1
,
l
,
0
,
NULL
,
NULL
);
zclColorControlMovetohueandsat
(
0x5996
,
1
,
h
*
254
/
360
,
s
*
254
/
100
,
0
,
0
,
0
,
0
);
emberAfAppPrint
(
"AT+TEST1
\r\n
"
);
kk_ota_test123123123
();
}
if
(
MEMCOMPARE
(
messageString
,
"AT+TEST2
\r\n
"
,
len
)
==
0
){
uint16_t
h
;
unsigned
char
s
,
l
;
RGB_to_HSL
(
20
,
24
,
22
,
&
h
,
&
s
,
&
l
);
emberAfAppPrintln
(
"%d,%d,%d"
,
h
,
s
,
l
);
emberAfAppPrintln
(
"%d,%d,%d"
,
h
*
254
/
360
,
s
*
254
/
100
,
l
);
kk_device_table_s
*
dev
=
kk_device_find_by_node
(
0x5996
);
dev
->
manage
.
dev
.
ColorLighting
.
color
.
HSL
.
L
=
l
;
zclLevel_MoveToLevel
(
0x5996
,
1
,
l
,
0
,
NULL
,
NULL
);
zclColorControlMovetohueandsat
(
0x5996
,
1
,
h
*
254
/
360
,
s
*
254
/
100
,
0
,
0
,
0
,
0
);
emberAfAppPrint
(
"AT+TEST2
\r\n
"
);
if
(
MEMCOMPARE
(
messageString
,
"AT+TEST
\r\n
"
,
len
)
==
0
){
kk_ota_test111
();
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
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