Documentation
¶
Index ¶
- Variables
- type Device
- type GetListenerResponse
- type Listener
- type UHPPOTE
- func (u *UHPPOTE) Broadcast(request, replies interface{}) error
- func (u *UHPPOTE) DeleteCard(deviceID uint32, cardNumber uint32) (bool, error)
- func (u *UHPPOTE) DeleteCards(serialNumber uint32) (bool, error)
- func (u *UHPPOTE) DeviceList() map[uint32]*Device
- func (u *UHPPOTE) DirectedBroadcast(serialNumber uint32, request, replies interface{}) error
- func (u *UHPPOTE) Execute(serialNumber uint32, request, reply interface{}) error
- func (u *UHPPOTE) FindDevice(serialNumber uint32) (*types.Device, error)
- func (u *UHPPOTE) FindDevices() ([]types.Device, error)
- func (u *UHPPOTE) GetCardByID(deviceID, cardNumber uint32) (*types.Card, error)
- func (u *UHPPOTE) GetCardByIndex(deviceID, index uint32) (*types.Card, error)
- func (u *UHPPOTE) GetCards(deviceID uint32) (uint32, error)
- func (u *UHPPOTE) GetDoorControlState(serialNumber uint32, door byte) (*types.DoorControlState, error)
- func (u *UHPPOTE) GetEvent(serialNumber, index uint32) (*types.Event, error)
- func (u *UHPPOTE) GetEventIndex(serialNumber uint32) (*types.EventIndex, error)
- func (u *UHPPOTE) GetListener(serialNumber uint32) (*types.Listener, error)
- func (u *UHPPOTE) GetStatus(serialNumber uint32) (*types.Status, error)
- func (u *UHPPOTE) GetTime(serialNumber uint32) (*types.Time, error)
- func (u *UHPPOTE) Listen(listener Listener, q chan os.Signal) error
- func (u *UHPPOTE) OpenDoor(serialNumber uint32, door uint8) (*types.Result, error)
- func (u *UHPPOTE) PutCard(deviceID uint32, card types.Card) (bool, error)
- func (u *UHPPOTE) RecordSpecialEvents(deviceID uint32, enable bool) (bool, error)
- func (u *UHPPOTE) Send(serialNumber uint32, request interface{}) (messages.Response, error)
- func (u *UHPPOTE) SetAddress(serialNumber uint32, address, mask, gateway net.IP) (*types.Result, error)
- func (u *UHPPOTE) SetDoorControlState(serialNumber uint32, door uint8, state uint8, delay uint8) (*types.DoorControlState, error)
- func (u *UHPPOTE) SetEventIndex(serialNumber, index uint32) (*types.EventIndexResult, error)
- func (u *UHPPOTE) SetListener(serialNumber uint32, address net.UDPAddr) (*types.Result, error)
- func (u *UHPPOTE) SetTime(serialNumber uint32, datetime time.Time) (*types.Time, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var VERSION string = "v0.6.10"
Functions ¶
This section is empty.
Types ¶
type GetListenerResponse ¶
type UHPPOTE ¶
type UHPPOTE struct {
BindAddress *net.UDPAddr
BroadcastAddress *net.UDPAddr
ListenAddress *net.UDPAddr
Devices map[uint32]*Device
Debug bool
}
func (*UHPPOTE) DeleteCard ¶
func (*UHPPOTE) DeviceList ¶ added in v0.6.7
func (*UHPPOTE) DirectedBroadcast ¶
Sends a UDP message to a specific device but anticipates replies from more than one device because it may fall back to the broadcast address if the device ID has no configured IP address.
func (*UHPPOTE) FindDevice ¶
func (*UHPPOTE) GetCardByID ¶
func (*UHPPOTE) GetCardByIndex ¶
func (*UHPPOTE) GetDoorControlState ¶
func (*UHPPOTE) GetEventIndex ¶
func (u *UHPPOTE) GetEventIndex(serialNumber uint32) (*types.EventIndex, error)
func (*UHPPOTE) GetListener ¶
func (*UHPPOTE) RecordSpecialEvents ¶ added in v0.6.7
Sends a RecordSpecialEvents request to the designated controller, to enable or disable door open, door closed and door button pressed events.
Returns true if the controller 'record special events' flag was updated, false if the request failed for any reason. Returns an error if the request could not be sent or the response is invalid.
func (*UHPPOTE) SetAddress ¶
func (*UHPPOTE) SetDoorControlState ¶
func (*UHPPOTE) SetEventIndex ¶
func (u *UHPPOTE) SetEventIndex(serialNumber, index uint32) (*types.EventIndexResult, error)
func (*UHPPOTE) SetListener ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.