TwiceAsNice  2019-02-18
Functions
ID Functions: Functions to delete properties, and log messages locally or remotely.

Functions

void IDMessage (const char *dev, const char *msg,...)
 Function Drivers call to send log messages to Clients. More...
 
void IDDelete (const char *dev, const char *name, const char *msg,...)
 Function Drivers call to inform Clients a Property is no longer available, or the entire device is gone if name is NULL. More...
 
void IDLog (const char *msg,...)
 Function Drivers call to log a message locally. More...
 

Detailed Description

Function Documentation

◆ IDDelete()

void IDDelete ( const char *  dev,
const char *  name,
const char *  msg,
  ... 
)

Function Drivers call to inform Clients a Property is no longer available, or the entire device is gone if name is NULL.

Parameters
devdevice name. If device name is NULL, the entire device will be deleted.
nameproperty name to be deleted.
msgmessage in printf style to send to the client.

◆ IDLog()

void IDLog ( const char *  msg,
  ... 
)

Function Drivers call to log a message locally.

The message is not sent to any Clients.

Parameters
msgmessage in printf style to send to the client.

◆ IDMessage()

void IDMessage ( const char *  dev,
const char *  msg,
  ... 
)

Function Drivers call to send log messages to Clients.

If dev is specified the Client shall associate the message with that device; if dev is NULL the Client shall treat the message as generic from no specific Device.

Parameters
devdevice name
msgmessage in printf style to send to the client.