stefandreyer / CODESYS-MQTT

MQTT client library for CODESYS, supporting all QoS
MIT License
109 stars 24 forks source link

Split Lampbase in Lampbase and Switchbase #29

Closed sanderobdeijn closed 4 years ago

sanderobdeijn commented 4 years ago

I want to write my switching logic in an external system (OpenHab) Because of that I would like to have a switchbase fb that just publishes to mqtt and maybe a variable for testing and fallback scenarios. But without the statemanagement. Bonus points for also having different messages for a short and a long press or or adding pressdown time.

And a lampbase that listens to mqtt and maybe a variable for testing and fallback scenarios. This should probably have statemanagement.

Can I just copy the lampbase and take out the statemanagement and recieving logic?

stefandreyer commented 4 years ago

Hi @sanderobdeijn

yes you can. You are free to build pure receive and transmit FB's

for inspiration of long and short press time have a look to:

https://github.com/MichielVanwelsenaere/HomeAutomation.CoDeSys3

or the OSCAT librarys

This projekt is using my library.

BR Stefan