Skip to content

Commit

Permalink
Correct arguments and add missing write call
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 committed Feb 28, 2024
1 parent 5cb9235 commit 28a6f24
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,29 +224,41 @@ interface RNSerialportStatic {
*/
disconnect(): void;

/**
* Writes integer array to port
*
* @param {string} deviceName
* @param {Array<number>} data
* @memberof RNSerialportStatic
*/
writeBytes(deviceName: string, data: Array<number>): void;

/**
* Writes string to port
*
* @param {string} deviceName
* @param {string} data
* @memberof RNSerialportStatic
*/
writeString(data: string): void;
writeString(deviceName: string, data: string): void;

/**
* Writes Base64 string to port
*
* @param {string} deviceName
* @param {string} data
* @memberof RNSerialportStatic
*/
writeBase64(data: string): void;
writeBase64(deviceName: string, data: string): void;

/**
* Writes hex string to port
*
* @param {string} deviceName
* @param {string} data
* @memberof RNSerialportStatic
*/
writeHexString(data: string): void
writeHexString(deviceName: string, data: string): void

/**
* Integer array convert to Utf16 string
Expand Down

0 comments on commit 28a6f24

Please sign in to comment.