22 lines
547 B
TypeScript
22 lines
547 B
TypeScript
|
|
/**
|
||
|
|
* Type definitions for UPSD/NIS (Network UPS Tools) protocol module
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* UPSD connection configuration
|
||
|
|
*/
|
||
|
|
export interface IUpsdConfig {
|
||
|
|
/** UPSD server host (default: 127.0.0.1) */
|
||
|
|
host: string;
|
||
|
|
/** UPSD server port (default: 3493) */
|
||
|
|
port: number;
|
||
|
|
/** NUT device name (default: 'ups') */
|
||
|
|
upsName: string;
|
||
|
|
/** Connection timeout in milliseconds (default: 5000) */
|
||
|
|
timeout: number;
|
||
|
|
/** Optional username for authentication */
|
||
|
|
username?: string;
|
||
|
|
/** Optional password for authentication */
|
||
|
|
password?: string;
|
||
|
|
}
|