SubghzD & Weather improvments (#2237)

* Weather restructure

* Added Solight TE44 protocol

* Add disabled Marantec24, and GangQi

* More opt in subghzd
This commit is contained in:
Totoo 2024-09-06 20:23:11 +02:00 committed by GitHub
parent 76763b9bab
commit e6afd7744d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 687 additions and 512 deletions

View file

@ -28,6 +28,7 @@ So include here the .hpp, and add a new element to the protos vector in the cons
#include "w-kedsum.hpp"
#include "w-acurite5in1.hpp"
#include "w-emose601x.hpp"
#include "w-solight_te44.hpp"
#include <vector>
#include <memory>
@ -64,6 +65,7 @@ class WeatherProtos : public FProtoListGeneral {
protos[FPW_KEDSUM] = new FProtoWeatherKedsum();
protos[FPW_Acurite5in1] = new FProtoWeatherAcurite5in1();
protos[FPW_EmosE601x] = new FProtoWeatherEmosE601x();
protos[FPW_SolightTE44] = new FProtoWeatherSolightTE44();
// set callback for them
for (uint8_t i = 0; i < FPW_COUNT; ++i) {
@ -81,9 +83,7 @@ class WeatherProtos : public FProtoListGeneral {
};
static void callbackTarget(FProtoWeatherBase* instance) {
WeatherDataMessage packet_message{instance->getSensorType(), instance->getSensorId(),
instance->getTemp(), instance->getHumidity(), instance->getBattLow(),
instance->getChannel()};
WeatherDataMessage packet_message{instance->getSensorType(), instance->getData()};
shared_memory.application_queue.push(packet_message);
}