Telink_SIG_Mesh icon indicating copy to clipboard operation
Telink_SIG_Mesh copied to clipboard

如何连接小爱同学?

Open XInitialize opened this issue 4 years ago • 1 comments

复现:
xzw@xzw-RTX2070:~/Telink_SIG_Mesh/example/RGBCW_Ali_Mesh/mesh$ gedit mesh_config.h 

mesh_config.h

... 125 #if __PROJECT_MESH_PRO__ 126 #define MESH_USER_DEFINE_MODE MESH_NORMAL_MODE // must normal 127 #elif __PROJECT_SPIRIT_LPN__ 128 //#define MESH_USER_DEFINE_MODE MESH_SPIRIT_ENABLE // must spirit 129 #define MESH_USER_DEFINE_MODE MESH_MI_ENABLE 130 #else 131 //#define MESH_USER_DEFINE_MODE MESH_SPIRIT_ENABLE 132 #define MESH_USER_DEFINE_MODE MESH_MI_ENABLE 133 #endif ...

然后
xzw@xzw-RTX2070:~/Telink_SIG_Mesh/example/RGBCW_Ali_Mesh/mesh$ cd ..
xzw@xzw-RTX2070:~/Telink_SIG_Mesh/example/RGBCW_Ali_Mesh$ make all

问题出现
Building file: mesh/ev.c
Building file: mesh/factory_reset.c
Building file: mesh/fast_provision_model.c
Building file: mesh/generic_model.c
Building file: mesh/light.c
mesh/light.c: In function 'set_ct_mode':
mesh/light.c:228:29: error: 'ST_TRANS_HSL_HUE' undeclared (first use in this function)
mesh/light.c:228:29: note: each undeclared identifier is reported only once for each function it appears in
mesh/light.c:229:29: error: 'ST_TRANS_HSL_SAT' undeclared (first use in this function)
mesh/light.c:230:4: error: 'HSL_set' undeclared (first use in this function)
mesh/light.c:230:12: error: expected ';' before 'HSL'
mesh/light.c:231:4: error: 'RGB_set' undeclared (first use in this function)
mesh/light.c:231:12: error: expected ';' before 'RGB'
mesh/light.c:232:4: error: 'HSL' undeclared (first use in this function)
mesh/light.c:235:4: warning: implicit declaration of function 'HslToRgb'
mesh/light.c:235:18: error: 'RGB' undeclared (first use in this function)
make: *** [mesh/mesh.mk:51:out/mesh/light.o] 错误 1
xzw@xzw-RTX2070:~/Telink_SIG_Mesh/example/RGBCW_Ali_Mesh$

XInitialize avatar Sep 30 '20 02:09 XInitialize

我们这个固件是针对天猫精灵的,没有对结果小米,所以你的问题我也回复不了。 建议你在Telink官网下载最新的SDK,按照你的思路进行修改再试一试。

ospanic avatar Oct 09 '20 07:10 ospanic