various improvements

- use dig for resolving host names
- ascon.c: fix terminator parsing
- property callback: change property before callback
- logger.c:default for logger period must be the old value instead of 1
- add frappy type history writing
- increase max. logreader line length
- HIPNONE returns "null" with json protocol
- encode strings properly in formatNameValue
- fix memory leak in json2tcl
- scriptcontext: do not show debug messages when script starts with underscore or when the "send" property is empty
- scriptcontext: remove args for action timestamp
- scriptcontext: "que" function will replace an already queued action, e.g. for 'halt
- introduced updatestatus script
This commit is contained in:
2021-09-16 12:26:18 +02:00
parent 8de1fd4183
commit 61341b52f4
24 changed files with 2352 additions and 304 deletions

View File

@ -14,10 +14,11 @@ typedef struct SctController SctController;
* \param node the node
* \param prio the priority
* \param action the initial state
* \param replace 0 queue does not replace, 1: entries with the same node and action are replaced
* \param con an optional connection to be used by the action scripts
*/
void SctQueueNode(SctController * controller, Hdb * node,
DevPrio prio, char *action, SConnection * con);
DevPrio prio, char *action, int replace, SConnection * con);
/** \brief call a script and configure the sct command to be used
* in connection with the given node and controller