Skip to content

Commit

Permalink
Merge pull request #26 from Roastero/version-0.2.2-dev
Browse files Browse the repository at this point in the history
Version 0.2.2 dev
  • Loading branch information
int3ll3ct authored May 4, 2017
2 parents a826144 + bfae9b5 commit 926aab6
Show file tree
Hide file tree
Showing 7 changed files with 368 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.1
current_version = 0.2.2
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<iter>\d+))?
Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ The latest release of this package can be installed by running:

Version History
===============
Version 0.2.2 - May 2017
------------------------
- Resolves issues #22, 23, 24 and 25. Added logic to handle hardware
connects and hardware disconnects properly in all supported OSes. Software
now supports multiple connect()-disconnect() cycles using the same
freshroastsrs700 object instance.

Version 0.2.1 - March 2017
--------------------------
- Resolves issue #20 by managing hardware discovery logic in the
Expand Down
7 changes: 7 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release Notes
=============

Version 0.2.2 - May 2017
------------------------
Resolves issues #22, 23, 24 and 25. Added logic to handle hardware
connects and hardware disconnects properly in all supported OSes. Software
now supports multiple connect()-disconnect() cycles using the same
freshroastsrs700 object instance.

Version 0.2.1 - March 2017
--------------------------
Resolves issue #20 by managing hardware discovery logic in the
Expand Down
60 changes: 60 additions & 0 deletions examples/auto_connect_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import freshroastsr700
import time

roaster = freshroastsr700.freshroastsr700()

# test auto-connect...
roaster.auto_connect()

wait_timeout = time.time() + 40.0
while not roaster.connected:
if time.time() > wait_timeout:
print("Waited for a connection, didn't find one, bailing.")
exit()
print("Connection state is %s" % str(roaster.connect_state))
time.sleep(0.5)

roaster.fan_speed = 3
roaster.heat_setting = 1
roaster.time_remaining = 10
roaster.roast()

time.sleep(6.0)

roaster.fan_speed = 5
roaster.heat_setting = 0
roaster.time_remaining = 10
roaster.cool()

time.sleep(6.0)

roaster.idle()

time.sleep(0.5)

roaster.disconnect()

time.sleep(2.0)

# test a re-connect after a successful session
roaster.connect()

roaster.fan_speed = 7
roaster.heat_setting = 1
roaster.time_remaining = 10
roaster.roast()

time.sleep(6.0)

roaster.fan_speed = 9
roaster.heat_setting = 0
roaster.time_remaining = 10
roaster.cool()

time.sleep(6.0)

roaster.idle()

time.sleep(0.5)

roaster.disconnect()
Loading

0 comments on commit 926aab6

Please sign in to comment.