Skip to content

A library for remote scales for ESP on Arduino framework.

License

Notifications You must be signed in to change notification settings

kstam/esp-arduino-ble-scales

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bluetooth scales library for ESP on Arduino Framework

This library defines3 main abstract concepts:

  • A RemoteScales which is used as a common interface to connect to scales, retrieve their weight and tare. It also supports a callback that is triggered when a new weight is received.
  • A RemoteScalesScanner which is used to scan for RemoteScales instances that are supported, and
  • A RemoteScalesPluginRegistry which holds all the scales that are supported by the library.

This allows for easy extention of the library for more bluetooth enabled scales.

Currently implemented scales

There is a big possibility other acaia models work out of the box as well but thye have not ben tested!

Want a specific model? Implement it 🚀 Read on to find out how...

How do implement new scales

We can do this either in this repo or in a separate repo. In both cases we need to:

  1. Create a class for the new Scales (i.e. AcaiaScales) that implements the protocol of the scales and extends RemoteScales. This is 99.9% of the work as it involves reverse engineering or reading the datasheet of the scales and implementing it accordingly.
  2. Create a plugin (i.e. AcaiaScalesPlugin) that extends RemoteScalesPlugin and implement an apply() method which should register the plugin to the RemoteScalesPluginRegistry singleton.
  3. Import your new library together with the remote_scales library and apply your plugin (i.e. MyScalesPlugin::apply()) during the initialisaion phase.

About

A library for remote scales for ESP on Arduino framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages