Changes between Version 44 and Version 45 of Proposal
- Timestamp:
- Jul 8, 2013, 2:36:43 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Proposal
v44 v45 60 60 weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example") 61 61 62 ets.register(weatherTempBlock) 63 62 64 ets.weave(fb=weatherTempBlock, dp="temperature", gad="1/1/1") 63 65 ets.weave(fb=weatherTempBlock, dp="humidity", gad="1/1/2") … … 117 119 # temperature = xxx 118 120 # humidity = xxx 119 self.dp["temperature"] = temperature120 self.dp["humidity"] = humidity121 self.dp["temperature"].value = temperature 122 self.dp["humidity"].value = humidity 121 123 }}} 122 124 … … 130 132 #!python 131 133 weatherTempBlock = WeatherTemperatureBlock(name="weather_tempertature", desc="A simple weather block example") 134 }}} 135 136 register it to {{{ETS}}} object: 137 138 {{{ 139 #!python 140 ets.register(weatherTempBlock 132 141 }}} 133 142