Skip to content
/ Domotic Public

An implementation of protocol described in Home Automation repository

License

Notifications You must be signed in to change notification settings

NdK73/Domotic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domotic

An implementation of protocol described in Home Automation repository

Still subject to modifications -- ALPHA code: class interface will be stabilized when the protocol is completely defined (v1.0.0).

crypto/ directory contains selected files from ArduinoLibs .

Currently assumes ESP8266 nodes (w/ WiFi). I know I'll have to decouple transport from protocol decoding.

To use it, include Domotic.h then derive a class from Domotic. The derived class should override all the relevant methods. The derived class' constructor must NOT initialize _ains, _aouts, _dins, _douts, members of base class: they're handled automatically. _tlen and _utf must be initialized as appropriate. The actual values will automatically be updated during init() if expansions are detected. Declare (in global scope) DerivedClass myInstance; instead of the (wrong) "Derivedclass myInstance = DerivedClass();" .

Note that expansions state is only updated in handler() method both for inputs and outputs. So, f.e. you can't just poll a din() to check it for a change.

Also note that digital state for 'active' is board- and line-dependant -- but usually all my boards use 'active low' logic.

About

An implementation of protocol described in Home Automation repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published