1.3.0 • Published 4 years ago
sperryngc_systemperformance v1.3.0
Parameters
Parameters taken by package are:
Mode - This indicates wheter module is running on ibridge or gateway, 0 = ibridge, 1 = gateway
Twin
Callback
SystemHealthFilepath - path for HealthData.json file
Example
// initiate
var SystemHealth= {
'property' : require('systemperformance'),
};
........
//call
SystemHealthFilepath = config.Interfaces.HealthData
// sending property update for SystemHealth interface - Ibridge or Gateway depending on value of Mode
SystemHealth.property.Switch(Mode, twin, function (e) { message_callback(e, 'telemetry', 'SystemHealth'); }, SystemHealthFilepath);