有关修改设备逻辑类型的问题?
时间:10-02
整理:3721RD
点击:
在协议栈中添加了NV_INIT,不知为何第一次无法修改设备逻辑类型,总是以协调器的身份启动
而不是我配置的路由器设备启动。而没加却可以,请问下这是为什么呢?
#if defined ( BUILD_ALL_DEVICES )
// The "Demo" target is setup to have BUILD_ALL_DEVICES and HOLD_AUTO_START
//We are looking at a jumper (defined in SampleAppHw.c) to be jumpered
//together - if they are - we will start up a coordinator. Otherwise,
//the device will start as a router.
zgDeviceLogicalType = ZG_DEVICETYPE_ROUTER;
我预编译中添加了 BUILD_ALL_DEVICES.
如果将NV_INIT去掉了则会导致无法修改设备逻辑类型。挺奇怪的,请问有人遇到过吗?
而不是我配置的路由器设备启动。而没加却可以,请问下这是为什么呢?
#if defined ( BUILD_ALL_DEVICES )
// The "Demo" target is setup to have BUILD_ALL_DEVICES and HOLD_AUTO_START
//We are looking at a jumper (defined in SampleAppHw.c) to be jumpered
//together - if they are - we will start up a coordinator. Otherwise,
//the device will start as a router.
zgDeviceLogicalType = ZG_DEVICETYPE_ROUTER;
我预编译中添加了 BUILD_ALL_DEVICES.
如果将NV_INIT去掉了则会导致无法修改设备逻辑类型。挺奇怪的,请问有人遇到过吗?