Rename HalEvent and HalSensor to HalEventData and HalSensorData
Former-commit-id: 2dac97a3080245639b43d290aa4e94127cb1bdd4
This commit is contained in:
parent
92e90c5eef
commit
cc6da8fccf
26 changed files with 71 additions and 95 deletions
|
|
@ -1,7 +1,7 @@
|
|||
package se.hal.plugin.tellstick;
|
||||
|
||||
import se.hal.HalContext;
|
||||
import se.hal.intf.HalSensor;
|
||||
import se.hal.intf.HalSensorData;
|
||||
import se.hal.intf.HalSensorReportListener;
|
||||
import se.hal.plugin.tellstick.protocols.Oregon0x1A2D;
|
||||
import zutil.db.DBConnection;
|
||||
|
|
@ -32,7 +32,7 @@ public class TelstickSerialCommTest {
|
|||
TellstickSerialComm comm = new TellstickSerialComm();
|
||||
comm.setListener(new HalSensorReportListener() {
|
||||
@Override
|
||||
public void reportReceived(HalSensor s) {
|
||||
public void reportReceived(HalSensorData s) {
|
||||
if(s instanceof Oregon0x1A2D){
|
||||
logger.info("Power used: "+ ((Oregon0x1A2D)s).getTemperature() +" pulses");
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue