Skip to content

Commit

Permalink
feat: ReadDeviceIdentificationResult in TS declaration (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
everhardt authored Jun 29, 2022
1 parent 302a90c commit df17977
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ModbusRTU.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class ModbusRTU {
writeRegisters(dataAddress: number, values: Array<number> | Buffer): Promise<WriteMultipleResult>; // 16

on(event: 'close', listener: () => unknown): this;
readDeviceIdentification(deviceIdCode: number, objectId: number): Promise<ReadDeviceIdentificationResult>;

isOpen: boolean;
}
Expand Down Expand Up @@ -92,6 +93,11 @@ export interface WriteMultipleResult {
length: number;
}

export interface ReadDeviceIdentificationResult {
data: string[];
conformityLevel: number;
}

export interface SerialPortOptions {
baudRate?: number;
dataBits?: number;
Expand Down

0 comments on commit df17977

Please sign in to comment.