Remove unused driver.

pull/687/head
Fredrik Öhrström 2022-11-15 09:25:48 +01:00
rodzic 04cf4db747
commit 8e2f780d32
3 zmienionych plików z 0 dodań i 82 usunięć

Wyświetl plik

@ -52,7 +52,6 @@
X(IZAR, MANUFACTURER_DME, 0x07, 0x78) \
X(IZAR, MANUFACTURER_DME, 0x06, 0x78) \
X(IZAR, MANUFACTURER_HYD, 0x07, 0x86) \
X(IZAR3, MANUFACTURER_SAP, 0x00, 0x88) \
X(LSE_08, MANUFACTURER_LSE, 0x08, 0x01) \
X(MKRADIO3, MANUFACTURER_TCH, 0x62, 0x74) \
X(MKRADIO3, MANUFACTURER_TCH, 0x72, 0x74) \

Wyświetl plik

@ -1,80 +0,0 @@
/*
Copyright (C) 2020 Fredrik Öhrström (gpl-3.0-or-later)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include"meters.h"
#include"meters_common_implementation.h"
#include"wmbus.h"
#include"wmbus_utils.h"
#include<algorithm>
#include<stdbool.h>
using namespace std;
struct MeterIzar3 : public virtual MeterCommonImplementation {
MeterIzar3(MeterInfo &mi);
double totalWaterConsumption(Unit u);
bool hasTotalWaterConsumption();
private:
void processContent(Telegram *t);
double total_water_consumption_l_ {};
};
shared_ptr<Meter> createIzar3(MeterInfo &mi)
{
return shared_ptr<Meter>(new MeterIzar3(mi));
}
MeterIzar3::MeterIzar3(MeterInfo &mi) :
MeterCommonImplementation(mi, "izar3")
{
setMeterType(MeterType::WaterMeter);
// We do not know how to decode the IZAR r3 aka Diehl AQUARIUS!
addLinkMode(LinkMode::T1);
addPrint("total", Quantity::Volume,
[&](Unit u){ return totalWaterConsumption(u); },
"The total water consumption recorded by this meter.",
PrintProperty::FIELD | PrintProperty::JSON);
}
double MeterIzar3::totalWaterConsumption(Unit u)
{
assertQuantity(u, Quantity::Volume);
return convert(total_water_consumption_l_, Unit::L, u);
}
bool MeterIzar3::hasTotalWaterConsumption()
{
return true;
}
void MeterIzar3::processContent(Telegram *t)
{
vector<uchar> frame;
t->extractFrame(&frame);
if (t->beingAnalyzed() == false)
{
warning("(izar3) cannot decode content of telegram!\n");
}
total_water_consumption_l_ = 123456789;
}

Wyświetl plik

@ -70,7 +70,6 @@ LIST_OF_METER_TYPES
X(hydrocalm3, T1_bit, HeatMeter, HYDROCALM3, HydrocalM3) \
X(hydrodigit, T1_bit, WaterMeter, HYDRODIGIT, Hydrodigit) \
X(izar, T1_bit, WaterMeter, IZAR, Izar) \
X(izar3, T1_bit, WaterMeter, IZAR3, Izar3) \
X(mkradio3, T1_bit, WaterMeter, MKRADIO3, MKRadio3) \
X(mkradio4, T1_bit, WaterMeter, MKRADIO4, MKRadio4) \
X(multical302,C1_bit|T1_bit, HeatMeter, MULTICAL302, Multical302) \