Changes between Version 50 and Version 51 of Proposal
- Timestamp:
- Jul 10, 2013, 10:40:39 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Proposal
v50 v51 54 54 ets.register(WeatherTemperatureBlock, name="weather_temperature", desc="A simple weather temperature/humidity example") 55 55 56 ets.weave(fb= weatherTempBlock, dp="temperature", gad="1/1/1")57 ets.weave(fb= weatherTempBlock, dp="humidity", gad="1/1/2")56 ets.weave(fb="weatherTempBlock", dp="temperature", gad="1/1/1") 57 ets.weave(fb="weatherTempBlock", dp="humidity", gad="1/1/2") 58 58 59 59 stack.serve() … … 119 119 In this method, we get the temperature and humidity values (not explained here), and give the value to the respective Datapoints. 120 120 121 Then, we register our new Funtional Block (this will automatically instanciate it ):122 123 {{{ 124 #!python 125 ets.register(WeatherTemperatureBlock, name="weather_temper tature", desc="A simple weather block example")121 Then, we register our new Funtional Block (this will automatically instanciate it - and do other things): 122 123 {{{ 124 #!python 125 ets.register(WeatherTemperatureBlock, name="weather_temperature", desc="A simple weather block example") 126 126 }}} 127 127 … … 130 130 {{{ 131 131 #!python 132 ets.weave(fb= weatherTempBlock, dp="temperature", gad="1/1/1")133 ets.weave(fb= weatherTempBlock, dp="humidity", gad="1/1/2")132 ets.weave(fb="weatherTempBlock", dp="temperature", gad="1/1/1") 133 ets.weave(fb="weatherTempBlock", dp="humidity", gad="1/1/2") 134 134 }}} 135 135