Skip to content

Releases: crownstone/crownstone-lib-python-sse

Structural rework

07 May 15:21
Compare
Choose a tag to compare

Structure

  • Client has been split up in 2 versions, an async version which uses asyncio, and a sync version that uses threading which is a wrapper for the async client
  • Eventbus is now optional when just using the async client

Lib

  • Improved error handling
  • Many coding style improvements according to PEP8, with the help of PyLint, Black and Isort & improved typing
  • Events are now fired using their main type, and you can use the sub-type to act on different variants of that event, as shown here

Dependencies

  • Bump aiohttp from 3.6.2 to 3.7.4

When you're using the sync version, there should not be a lot of differences with previous version of the lib,

Crownstone switch command rework & coroutines in eventbus

09 Nov 22:27
Compare
Choose a tag to compare

Internal changes:

  • Changed some files names according to PEP 8 guidelines.

Breaking:

  • EVENT_COMMAND_SWITCH_CROWNSTONE has been changed to EVENT_COMMAND_SWITCH_MULTIPLE_CROWNSTONES. It is now possible to receive an event that requests to switch or dim multiple Crownstones.

New:

  • You can now submit coroutine functions in an event listener. They will be scheduled in event loop that the client runs in.

AbilityChangeEvent added

02 Jul 15:09
Compare
Choose a tag to compare

In this release you can now listen for ability change events!

If dimming, switchcraft or tap to toggle was enabled/disabled, you can receive this change immediately!
A new feature has been added that detects internet connection failure, the client will reconnect once this happens.

Aiohttp v3.6.1 and info logs

16 Jun 22:06
Compare
Choose a tag to compare

Changed aiohttp version to 3.6.1 to satisfy Home Assistant dependency. Changes some basic logs to info level.

First release of Crownstone-SSE

09 Jun 12:47
c34293a
Compare
Choose a tag to compare

First release of the Crownstone SSE Python library!