Lines Matching refs:wpan

29 from wpan import verify
30 import wpan
43 wpan.Node.set_time_speedup_factor(speedup)
45 node1 = wpan.Node()
46 node2 = wpan.Node()
51 wpan.Node.init_all_nodes()
58 verify(node1.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED)
59 verify(node1.get(wpan.WPAN_NODE_TYPE) == wpan.NODE_TYPE_LEADER)
62 node2.join_node(node1, node_type=wpan.JOIN_TYPE_ROUTER)
63 verify(node2.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED)
64 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME))
65 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID))
66 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID))
67 verify(node2.get(wpan.WPAN_KEY) == node1.get(wpan.WPAN_KEY))
72 node2.join_node(node1, node_type=wpan.JOIN_TYPE_END_DEVICE)
73 verify(node2.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED)
74 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME))
75 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID))
76 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID))
77 verify(node2.get(wpan.WPAN_KEY) == node1.get(wpan.WPAN_KEY))
82 node2.join_node(node1, node_type=wpan.JOIN_TYPE_SLEEPY_END_DEVICE)
83 verify(node2.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED)
84 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME))
85 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID))
86 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID))
87 verify(node2.get(wpan.WPAN_KEY) == node1.get(wpan.WPAN_KEY))
93 verify(node2.get(wpan.WPAN_STATE) == wpan.STATE_CREDENTIALS_NEEDED)
94 verify(node2.get(wpan.WPAN_NAME) == node1.get(wpan.WPAN_NAME))
95 verify(node2.get(wpan.WPAN_PANID) == node1.get(wpan.WPAN_PANID))
96 verify(node2.get(wpan.WPAN_XPANID) == node1.get(wpan.WPAN_XPANID))
97 node2.set(wpan.WPAN_KEY, node1.get(wpan.WPAN_KEY)[1:-1], binary_data=True)
98 verify(node2.get(wpan.WPAN_KEY) == node1.get(wpan.WPAN_KEY))
99 verify(node2.get(wpan.WPAN_STATE) == wpan.STATE_ASSOCIATED)
104 wpan.Node.finalize_all_nodes()