Skip to content

Methods

Melih Yarıkkaya edited this page Apr 18, 2019 · 15 revisions

Methods

setReturnedDataType

Changes the data type in "ON_READ_DATA" event

Default: INTARRAY

import { definitions } from "react-native-serialport
RNSerialport.setReturnedDataType(
  definitions.RETURNED_DATA_TYPES.HEXSTRING
)
// or
RNSerialport.setReturnedDataType(
  definitions.RETURNED_DATA_TYPES.INTARRAY
) 

setInterface

Clone this wiki locally