Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.77 KB

presence.md

File metadata and controls

38 lines (24 loc) · 1.77 KB

H4P Logo

Network Presence Detection

Reacting to the network arrival and departure of "roaming" devices


What does it do?

There is a plugin called H4P_GateKeeper. Your sketch lists identifying fatures of specifc devices, for example your mobile phone, a family member's laptop etc.

The H4P_GateKeeper emits an H4PE_PRESENCE event whenever one of the named roaming devices enters (msg==1) or leaves (msg=0) the network.

This can be used for example to implement a self-arming alarm system which will switch on whenever your personal phone leaves the network and switches off when your phone is detected again as you arrive back home. It could turn on the outsiude lights at the same time when it is dark.

See Youtube video: 13: Target in Range!: Network Presence Detection

What can be detected?

Type of device Identifying features Example H4Plugins "Roamer" type
any IP address 192.168.1.42 h4pRoamingIP
UPNP device UPNP Tag, value USN,uuid:Socket-1_0-upnpF9198B h4pRoamingUPNP
MDNS (.local) device protocol / service attributes tcp,http h4pRoamingDotLocal
H4 device device name bedroom h4pRoamingH4

(c) 2021 Phil Bowles [email protected]