Browse Source

add WriteBytes

Devel 3 years ago
parent
commit
a346f284be
1 changed files with 9 additions and 0 deletions
  1. 9 0
      types/index.d.ts

+ 9 - 0
types/index.d.ts

@@ -242,6 +242,15 @@ interface RNSerialportStatic {
    */
    */
   disconnect(): void;
   disconnect(): void;
 
 
+  /**
+   * Writes bytes to port
+   *
+   * @param {ArrayBuffer} data
+   * @memberof RNSerialportStatic
+   */
+  writeBytes(data: ArrayBuffer );
+
+
   /**
   /**
    * Writes string to port
    * Writes string to port
    *
    *