gpt4 book ai didi

com.zsmartsystems.zigbee.ZigBeeNetworkManager.setZigBeePanId()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-14 07:33:31 26 4
gpt4 key购买 nike

本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNetworkManager.setZigBeePanId()方法的一些代码示例,展示了ZigBeeNetworkManager.setZigBeePanId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeNetworkManager.setZigBeePanId()方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.ZigBeeNetworkManager
类名称:ZigBeeNetworkManager
方法名:setZigBeePanId

ZigBeeNetworkManager.setZigBeePanId介绍

[英]Sets the ZigBee PAN ID to the specified value. The range of the PAN ID is 0 to 0x3FFF. Additionally a value of 0xFFFF is allowed to indicate the user doesn't care and a random value can be set by the transport.

Note that this method may only be called following the #initialize call, and before the #startupcall.
[中]将ZigBee PAN ID设置为指定值。PAN ID的范围为0到0x3FFF。此外,允许使用0xFFFF值来表示用户不在乎,并且可以由传输设置一个随机值。
请注意,此方法只能在#initialize调用之后和#startup调用之前调用。

代码示例

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

Integer panId = parseInteger(args[2]);
networkManager.setZigBeePanId(panId);
networkManager.setZigBeeExtendedPanId(epanId);
transportOptions.addOption(TransportConfigOption.DEVICE_TYPE, deviceType);

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

networkManager.setZigBeePanId(pan);
networkManager.setZigBeeExtendedPanId(epan);
networkManager.setZigBeeChannel(channel);

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

networkManager.setZigBeePanId(pan);
networkManager.setZigBeeExtendedPanId(extendedPan);
networkManager.setZigBeeNetworkKey(nwkKey);

代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee

@Test
public void testSetPanId() {
  ZigBeeNetworkManager networkManager = mockZigBeeNetworkManager();
  assertEquals(ZigBeeStatus.INVALID_ARGUMENTS, networkManager.setZigBeePanId(-1));
  assertEquals(ZigBeeStatus.INVALID_ARGUMENTS, networkManager.setZigBeePanId(0x11111));
  assertEquals(ZigBeeStatus.SUCCESS, networkManager.setZigBeePanId(10));
  assertEquals(0xABCD, networkManager.getZigBeePanId());
}

代码示例来源:origin: openhab/org.openhab.binding.zigbee

networkManager.setZigBeeNetworkKey(networkKey);
networkManager.setZigBeeChannel(ZigBeeChannel.create(channelId));
networkManager.setZigBeePanId(panId);
networkManager.setZigBeeExtendedPanId(extendedPanId);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com