Interface: moteiv.tos.interfaces.Detect

interface Detect

Interface for detecting if a connection has been made with an external entity, such as a bus, device, or sensor.

Author:
Joe Polastre, Moteiv Corporation <info@moteiv.com>

Commands
command bool isConnected() Query to determine if the device is connected

Events
event void connected() Notification that the interface is now connected
event void disconnected() Notification that the interface has been disconnected

Commands - Details

isConnected

command bool isConnected()

Query to determine if the device is connected

Returns:
TRUE if connected

Events - Details

connected

event void connected()

Notification that the interface is now connected

disconnected

event void disconnected()

Notification that the interface has been disconnected