help | logout
postMessage

postMessage

Name

postMessage -- Send graph and module data to RSPD.

Synopsis

$err = $mod->postMessage();

Description

Sends your module's current data and graph data (if any) to the RSPD. Must be called each time you want to update the RSPD with your current status. The module and graph data should have already been set with giveData() and giveGraphData().

Returns

This function returns -1 if an error occurred, and 0 otherwise. In case of error, the program will croak() with an appriopriate message.