Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPort = 0xBAC0 //47808
DefaultPort that BacnetIP will use if a port is not given. Valid ports for the bacnet protocol is between 0xBAC0 and 0xBAC9
Variables ¶
This section is empty.
Functions ¶
func FindCIDRAddress ¶
FindCIDRAddress find out CIDR address from net interface
func IPPortToAddress ¶
IPPortToAddress converts a given udp address into a bacnet address
Types ¶
type DataLink ¶
type DataLink interface {
GetMyAddress() *btypes.Address
GetBroadcastAddress() *btypes.Address
Send(data []byte, npdu *btypes.NPDU, dest *btypes.Address) (int, error)
Receive(data []byte) (*btypes.Address, int, error)
Close() error
}
func NewUDPDataLink ¶
NewUDPDataLink returns udp listener pass in your iface port by name, see an alternative NewUDPDataLinkFromIP if you wish to pass in by ip and subnet
- inter: eth0
- addr: 47808
Click to show internal directories.
Click to hide internal directories.