Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

readUntilBytes function add #2

Closed
wants to merge 38 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
bf25311
read bytes until stop bytes
AleyRobotics Jun 27, 2017
188f4f5
read bytes until stop bytes
AleyRobotics Jun 27, 2017
7bc504d
read bytes until bytes
AleyRobotics Jun 27, 2017
4f22623
read bytes until bytes
AleyRobotics Jun 27, 2017
095971d
Update README.md
AleyRobotics Jun 28, 2017
29fff2f
merge conflict resolved
AleyRobotics Jun 28, 2017
6033963
bug fixes
AleyRobotics Jun 30, 2017
e1f0278
bug fixes
AleyRobotics Jul 2, 2017
9ef73fd
bug fixes
AleyRobotics Jul 2, 2017
e24d392
bug fix
AleyRobotics Jul 2, 2017
e29bb1b
read 0x0D value bug fix
AleyRobotics Jul 3, 2017
675c169
build bug fix
AleyRobotics Jul 3, 2017
b8bab27
bug fixes
AleyRobotics Jul 3, 2017
af6779d
Revert "bug fixes"
AleyRobotics Jul 3, 2017
1d83a8a
bug fix
AleyRobotics Jul 3, 2017
015ef38
bug fix
AleyRobotics Jul 3, 2017
62bfce0
add write byte, write byte array functions
AleyRobotics Jul 8, 2017
a6b8d9b
new speed value add
AleyRobotics Jul 8, 2017
bf380e0
bug fix
AleyRobotics Jul 8, 2017
73ecf6a
read data from start to stop Byte
AleyRobotics Jul 8, 2017
2a4507d
variable port speed add
AleyRobotics Jul 8, 2017
b120809
bug fix
AleyRobotics Jul 8, 2017
2e4d8f2
bug fix
AleyRobotics Jul 8, 2017
4b1c09b
bug fix
AleyRobotics Jul 8, 2017
433ad0c
bugfix
AleyRobotics Jul 9, 2017
40cebea
debug
AleyRobotics Jul 9, 2017
c5c7be8
bugfix
AleyRobotics Jul 9, 2017
44e11a2
bugfix
AleyRobotics Jul 11, 2017
c6d3806
debug
AleyRobotics Jul 13, 2017
b818593
Merge commit 'c6d38061e32908bfd9178e87b058e0a552a9fd71'
AleyRobotics Jul 13, 2017
39ffa6e
bugfix
AleyRobotics Jul 13, 2017
41545b8
bugfix
AleyRobotics Jul 13, 2017
733f263
fix
AleyRobotics Jul 13, 2017
414e030
fix
AleyRobotics Jul 13, 2017
2679706
fix
AleyRobotics Jul 13, 2017
7c7d9b0
fix
AleyRobotics Jul 13, 2017
fe8e37d
fix
AleyRobotics Jul 13, 2017
e09e214
fix
AleyRobotics Jul 13, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ func readChar() throws -> UnicodeScalar
```
Read only one character. This works best if `minimumBytesToRead` has been set to `1` when opening the port. This function internally calls `readByte()`.

```swift
func readUntilBytes(stopBytes: [UInt8], maxBytes: Int) throws -> [UInt8]
```
Read bytes until stop bytes found or maxBytes count was recieved
### Writing data to the port

There are several functions you can use to write data. All functions here are blocking till all the data has been written. All functions can throw `PortError.mustBeOpen`.
Expand Down
Loading