SerialPortAPI.open returns null
Closed this issue · 1 comments
SubroBlack commented
[Unhandled promise rejection: TypeError: null is not an object (evaluating 'SerialPortAPI.open')]
Stack trace:
node_modules\react-native-serial-port-api\src\API.js:65:78 in open
src\components\Trial.jsx:27:18 in handler
I am trying to access port in an android device. But the function returns null.
Here is my code:
const serialPort = await SerialPortAPI.open("/dev/ttyS4", {baudRate: 9600, parity: 0, dataBits: 8, stopbits: 1 });
RodrigoGCoelhoo commented
Did you fix the issue?