|Re: Subscriptions [message #1600706 is a reply to message #1599904]
||Wed, 04 February 2015 12:29
| Ghada Gharbi
Registered: July 2014
You are right. Indeed, the "setState" method of the Sensor class is not correct.
I made the following changes on the wiki:
- In Sensor class: the setState(String appId) method was removed and replaced with the getState() that returns a random value to simulate a sensor measurement. The appId parameter is useless here.
- In Lamp class: the appId parameter is also removed from the getState(String appId) method like this: boolean getState().
- In IpuControlor class: Now, in the doRetrieve() method we get the value of the sensor from Sensor.getState(), then it is converted to an oBIX represented.
[Updated on: Wed, 04 February 2015 12:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03368 seconds