Addresses¶
Address¶
GroupAddress¶
- class knx_stack.GroupAddress¶
A wrapper to c_uint16.
It has properties to access three level style and two level style group addresses representations.
>>> import knx_stack >>> g = knx_stack.GroupAddress(three_level_style=knx_stack.address.ThreeLevelStyle(main=1, middle=1, sub=1)) >>> hex(g.free_style) '0x901' >>> g.two_level_style.main 1 >>> g.three_level_style.middle 1 >>> g (0x0901 1/257 1/1/1)
>>> g = knx_stack.GroupAddress(free_style=0x1202) >>> hex(g.free_style) '0x1202' >>> g.two_level_style.main 2 >>> g.three_level_style.middle 2 >>> g (0x1202 2/514 2/2/2)
- free_style¶
Structure/Union member
- three_level_style¶
Structure/Union member
- two_level_style¶
Structure/Union member