Changes between Version 46 and Version 47 of Proposal


Ignore:
Timestamp:
Jul 8, 2013, 3:02:24 PM (11 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proposal

    v46 v47  
    165165My first idea was to provide a special API to create rules, but in fact, they can be implemented as Functional Block. This way, we use the same paradigm, wich is always better ;o)
    166166
     167Let's have a look at another example; this is something I currently implemented as a rule in '''linknx'''. Here, I juste create a Functional Block:
     168
    167169{{{
    168170#!python
     
    202204
    203205
    204 heatingManagerBlock = HeatingManagerBlock(name="heating_manager", desc="A simple heating manager block example")
    205 
    206 ets.register(heatingManagerBlock)
     206ets.register(HeatingManagerBlock, name="heating_manager", desc="A simple heating manager block example")
    207207
    208208ets.weave(fb=heatingManagerBlock, dp="temperature", gad="1/1/1")