Skip to content

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
:F
  • Loading branch information
AgainPsychoX committed Jul 2, 2019
1 parent a0314cf commit 6067e2a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 6 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
## [0.2.0] - 2019-07-02

Two big features packs:
* Bonding (Pairing):
- starting outgoing pairing requests,
- handling incoming pairing requests,
- remove current bondings to devices,
* Discoverability!
- requesting discoverable mode for specified duration,
- example with timeout countdown,
- checking discoverable mode.

And few more features:
* get/set for local (discoverable) device name,
* getting local adapter address (with some hacks to work on newer Androids),
* checking for `isConnected` for discovered or bonded devices,
* fixed few broadcast receiver leaks.

## [0.1.1] - 2019-07-01

* Patch #43 for "Error when meet unknown devices".
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ The first goal of this project, started by `Edufolly` was making an interface fo

+ Opening settings,

+ Discovering devices,
+ Discovering devices (and requesting discoverability),

+ Listing bonded devices and pairing new ones,

+ Connecting to multiple devices at the same time,

Expand All @@ -36,7 +38,7 @@ For now there is only Android support.
# Add dependency to `pubspec.yaml` of your project.
dependencies:
# ...
flutter_bluetooth_serial: ^0.1.1
flutter_bluetooth_serial: ^0.2.0

```

Expand Down Expand Up @@ -80,6 +82,8 @@ catch (exception) {
}
```

Note: Work is underway to make the communication easier than operations on byte streams. See #41 for discussion about the topic.

#### Examples

Check out [example application](example/README.md) with connections with both Arduino HC-05 and Raspberry Pi (RFCOMM) Bluetooth interfaces.
Expand All @@ -92,10 +96,12 @@ Main screen and options | Discovery and connecting | Simple chat with server

## To-do list

+ Add some utils to easier manage `BluetoothConnection` (as request/response),
+ Add some utils to easier manage `BluetoothConnection` (see discussion #41),
+ Allow connection method/protocol/UUID specification,
+ Listening/server mode,
+ Recognizing and displaying `BluetoothClass` of device,
+ Maybe integration with `flutter_blue` one day ;)

You might also want to check [milestones](https://github.com/edufolly/flutter_bluetooth_serial/milestones).


15 changes: 14 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Example application demonstrates key features of the `flutter_bluetooth_serial`

+ Opening settings,

+ Discovering devices,
+ Discovering devices (and requesting discoverability),

+ Listing bonded devices and pairing new ones,

+ Connecting to multiple devices at the same time,

Expand All @@ -22,6 +24,7 @@ Main screen and options | Discovery and connecting | Simple chat with server
:---:|:---:|:---:|:---:|
![](https://i.imgur.com/qeeMsVe.png) | ![](https://i.imgur.com/zruuelZ.png) | ![](https://i.imgur.com/y5mTUey.png) | ![](https://i.imgur.com/3wvwDVo.png)

Note: There screen-shots might be out-dated. Build and see the example app for yourself, you won't regret it. :)

#### Tests

Expand All @@ -31,6 +34,16 @@ There is a recording of the tests (click for open video as WEBM version):



## General

The basics are simple, so there is no need to write about it so much.

#### Discovery page

On devices list you can long tap to start pairing process. If device is already paired, you can use long tap to unbond it.



## Chat example

There is implemented simple chat. Client (the Flutter host) connects to selected from bonded devices server in order to exchange data - asynchronously.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_bluetooth_serial_example
version: 0.1.1
version: 0.2.0
description: Demonstrates how to use the `flutter_bluetooth_serial` plugin.
authors:
- Patryk Ludwikowski <patryk.ludwikowski.7@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: flutter_bluetooth_serial
version: 0.1.1
version: 0.2.0
description: A basic Flutter Bluetooth Serial library
authors:
- Eduardo Folly <edufolly@gmail.com>
Expand Down

0 comments on commit 6067e2a

Please sign in to comment.