Discover Packages
github.com/function61/hautomo
pkg
adapters
presencebypingadapter
package
Version:
v0.0.0-...-f8c32d9
Opens a new window with list of versions in this module.
Published: Jun 13, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Deduces a person's presence by her device (e.g. cell phone). Turns out this is not a
good idea because aggressive power saving means the devices will miss ping requests
type Presence struct {
Person string
Present bool
}
type ProbeRequest struct {
PingPacket icmp .Echo
IP net .IP
GotReply chan interface{}
}
type ProbeResponse struct {
ID int
Timeout bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.