Proto: bett

This commit is contained in:
HTotoo
2023-12-09 19:34:00 +01:00
parent 39fabab022
commit db4083f684
7 changed files with 115 additions and 9 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ So include here the .hpp, and add a new element to the protos vector in the cons
#include "subghzdbase.hpp"
#include "s-ansonic.hpp"
#include "s-princeton.hpp"
#include "s-bett.hpp"
#ifndef __FPROTO_PROTOLISTSGZ_H__
#define __FPROTO_PROTOLISTSGZ_H__
@@ -22,6 +23,7 @@ class SubGhzDProtos : public FProtoListGeneral {
// add protos
protos.push_back(std::make_unique<FProtoSubGhzDAnsonic>()); // 1
protos.push_back(std::make_unique<FProtoSubGhzDPrinceton>()); // 2
protos.push_back(std::make_unique<FProtoSubGhzDBett>()); // 3
// set callback for them
for (const auto& obj : protos) {
@@ -30,7 +32,7 @@ class SubGhzDProtos : public FProtoListGeneral {
}
static void callbackTarget(FProtoSubGhzDBase* instance) {
SubGhzDDataMessage packet_message{instance->getSensorType(), instance->getSensorSerial(), instance->getBits(), instance->getBtn()};
SubGhzDDataMessage packet_message{instance->getSensorType(), instance->getSensorSerial(), instance->getBits(), instance->getData(), instance->getData2(), instance->getBtn()};
shared_memory.application_queue.push(packet_message);
}