Used to debug and/or send messages to server.
Example:
hat.func(function() {
console.log("i="+hat.vars.i);
hat.message("DEBUG","sum from all inputs",hat.vars.i);
});
Function arguments:
Name | Datatype | Description |
---|---|---|
type | String | ERROR / DEBUG / NOTIFY |
description | String | Message description |
details | any | Any details (can be object) |