本文整理了Java中com.zsmartsystems.zigbee.transport.ZigBeeTransportTransmit.getZigBeeExtendedPanId()
方法的一些代码示例,展示了ZigBeeTransportTransmit.getZigBeeExtendedPanId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZigBeeTransportTransmit.getZigBeeExtendedPanId()
方法的具体详情如下:
包路径:com.zsmartsystems.zigbee.transport.ZigBeeTransportTransmit
类名称:ZigBeeTransportTransmit
方法名:getZigBeeExtendedPanId
[英]Gets the ZigBee Extended PAN ID currently in use by the transport
[中]获取传输当前正在使用的ZigBee扩展PAN ID
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
/**
* Gets the ZigBee Extended PAN ID currently in use by the transport
*
* @return the PAN ID
*/
public ExtendedPanId getZigBeeExtendedPanId() {
return transport.getZigBeeExtendedPanId();
}
代码示例来源:origin: zsmartsystems/com.zsmartsystems.zigbee
private ZigBeeNetworkManager mockZigBeeNetworkManager() {
mockedTransport = Mockito.mock(ZigBeeTransportTransmit.class);
mockedStateListener = Mockito.mock(ZigBeeNetworkStateListener.class);
mockedNodeListener = Mockito.mock(ZigBeeNetworkNodeListener.class);
nodeNodeListenerCapture = new ArrayList<ZigBeeNode>();
networkStateListenerCapture = new ArrayList<ZigBeeTransportState>();
final ZigBeeNetworkManager networkManager = new ZigBeeNetworkManager(mockedTransport);
networkManager.addNetworkNodeListener(mockedNodeListener);
commandListenerCapture = new ArrayList<>();
networkManager.addNetworkNodeListener(this);
networkManager.addNetworkStateListener(this);
networkManager.addCommandListener(this);
Mockito.when(mockedTransport.setZigBeeChannel(ArgumentMatchers.any(ZigBeeChannel.class)))
.thenReturn(ZigBeeStatus.SUCCESS);
Mockito.when(mockedTransport.setZigBeePanId(ArgumentMatchers.anyInt())).thenReturn(ZigBeeStatus.SUCCESS);
Mockito.when(mockedTransport.setZigBeeExtendedPanId(ArgumentMatchers.any(ExtendedPanId.class)))
.thenReturn(ZigBeeStatus.SUCCESS);
Mockito.when(mockedTransport.getZigBeePanId()).thenReturn(0xFFFFABCD);
Mockito.when(mockedTransport.getZigBeeChannel()).thenReturn(ZigBeeChannel.CHANNEL_11);
Mockito.when(mockedTransport.getZigBeeExtendedPanId()).thenReturn(new ExtendedPanId("1"));
mockedApsFrameListener = ArgumentCaptor.forClass(ZigBeeApsFrame.class);
Mockito.doNothing().when(mockedTransport).sendCommand(mockedApsFrameListener.capture());
return networkManager;
}
内容来源于网络,如有侵权,请联系作者删除!