Send machine data on startup/init to DeviceController
This commit is contained in:
		@@ -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 (!)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user