hdsv2.go 532 B

12345678910111213141516171819202122232425262728293031323334
  1. package hdsv2
  2. import (
  3. "imuslab.com/arozos/mod/iot"
  4. "imuslab.com/arozos/mod/network/mdns"
  5. )
  6. /*
  7. Home Dynamic 2 Controller
  8. This is a module that handles HDSv2 protocol devices scannings
  9. */
  10. type Handler struct {
  11. scanner *mdns.MDNSHost
  12. historyList []iot.Device
  13. lastScanTime int64
  14. }
  15. //Create a new HDSv2 Protocol Handler
  16. func NewProtocolHandler(scanner *mdns.MDNSHost) *Handler {
  17. //Create a new MDNS Host
  18. return &Handler{
  19. scanner,
  20. []iot.Device{},
  21. 0,
  22. }
  23. }
  24. func (h *Handler) Scan() ([]*iot.Device, error) {
  25. }