Send machine data on startup/init to DeviceController

This commit is contained in:
Siegfried Siegert 2023-08-03 09:10:44 +02:00
parent 8c2d764698
commit 39f575ceea
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -4,6 +4,7 @@
#include "src/ATBAPP/Utils.h"
#include "src/ATBAPP/support/JSON.h"
#include "src/ATBAPP/support/DBusControllerInterface.h"
#include "src/ATBAPP/support/PTUSystem.h"
#include <QTimer>
#include <QThread>
@ -80,6 +81,11 @@ PLUGIN_STATE ATBDeviceControllerPlugin::initDCPlugin(QObject *eventReceiver, con
hw->dc_autoRequest(true);
hw->dc_setNewCustomerNumber(PTUSystem::readCustomerNumber());
hw->dc_setNewMachineNumber(PTUSystem::readMachineNumber());
hw->dc_setNewZone(PTUSystem::readZoneNumber());
hw->dc_setNewBorough(PTUSystem::readGroupNumber());
hw->rtc_setDateTime();
// this is necessary to init the CashAgentLib (!)