github JuulLabs/kable 0.13.0

latest releases: 0.40.0, 0.39.2, 0.39.1...
3 years ago

🚀 Changes

  • Make services direct references and match properties for I/O (#238), special thanks to @solvek for reporting the issue and providing inspiration for the implementation

â„šī¸ Note: This is a potentially breaking change for users of peripherals that have incorrect (or missing) characteristic properties:
characteristicOf will now only match characteristics with the expected property; in other words, when performing characteristic I/O, the following properties must be on the characteristic:

Characteristic action Required property
read(..) read
write(.., WithResponse) write
write(.., WithoutReponse) writeWithoutResponse
observe(..) notify or indicate

If a sought after characteristic does not have the required property, then NoSuchElementException will be thrown at the time of the I/O operation. If you're communicating with a peripheral that has incorrect (or missing) characteristic properties, then you'll need to manually traverse the Peripheral.services to locate the desired Characteristic to perform I/O against.

See I/O documentation for more details.

🧰 Maintenance

  • Update dependency org.jetbrains.kotlin-wrappers:kotlin-extensions to v1.0.1-pre.293-kotlin-1.6.10 (#247, #249, #253)
  • Update JamesIves/github-pages-deploy-action action to v4.2.3 (#252)

Don't miss a new kable release

NewReleases is sending notifications on new releases.