Skip to content

Commit

Permalink
Update error codes and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Oct 18, 2018
1 parent 4b8a244 commit 576300c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014 Melih YARIKKAYA
Copyright (c) 2018 Melih YARIKKAYA

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,23 @@ _getDeviceList() {
| 11 | User did not allow to connect |
| 12 | Service could not stopped off. Please close connection first |
| 13 | There is no connection |
| 14 | Error reading from port |
| 14 | Error reading from port |
## ALL VOIDS
| VOID | DESCRIPTION |
|--------------------------------------------------|--------------------------------------------------------------------------|
| setDataBit(dataBit: int) | To set the data bit |
| setStopBit(stopBit: int) | To set the stop bit |
| setParity(parity: int) | To set the parity |
| setFlowControl(flowControl: int) | To set the flow control |
| loadDefaultConnectionSetting() | Loads default connection settings (DATABIT, STOPBIT,PARITY, FLOWCONTROL) |
| setAutoConnectBaudRate(baudRate: int) | Changes the Baud Rate used in auto-connection |
| setAutoConnect(state: boolean) | Turns automatic connection on or off |
| startUsbService() | Starts the service and broadcast receivers |
| stopUsbService() | Stops the service and broadcast receivers |
| getDeviceList(callback: void) | Receives device list |
| connectDevice(deviceName: string, baudRate: int) | Used for manual connection |
| disconnect() | Used to break the connection. |
| isOpen(callback: void) | Receives connection status |
| writeString(data: string) | Writes data to serial port |
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-serialport",
"version": "1.0.5",
"version": "1.0.6",
"description": "This library is for usb serial port communication on android platforms",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 576300c

Please sign in to comment.