Browse Source

Jay For Test Tunel

root 3 years ago
parent
commit
74f6321ab0
  1. 4
      Projects/argus/build
  2. 13
      lib/App/common/SQLite_dataBinder.cpp
  3. 1
      lib/App/common/SQLite_dataBinder.h
  4. 1
      lib/App/common/dataBinder.h
  5. 2
      lib/App/common/deviceNodeSensor.cpp

4
Projects/argus/build

@ -2,8 +2,8 @@
make clean -e "CFG=Debug"
#make -j4 -e "CFG=Debug"
make -j4 -e "CFG=Debug"
make clean -e "CFG=Release"
#make clean -e "CFG=Release"
#make -j4 -e "CFG=Release"

13
lib/App/common/SQLite_dataBinder.cpp

@ -3229,6 +3229,19 @@ bool sqliteDBC::updateLRFUpload( uint32_t id, uint8_t status ){
return false;
};
bool sqliteDBC::updateLRFUnfinishedUploads( uint32_t deviceID ){
if( m_bIsConnected ) {
char tQBuf[MAX_PATH_LEN];
sprintf( tQBuf, "UPDATE `lrf_uploads` SET `status`=-1 WHERE `sensor_id`=%d AND `status` < 101 ", deviceID );
#ifdef DEBUG_ALL
LOG(tQBuf);
#endif
m_pDataStorage->SilentQuery( tQBuf );
return true;
};
return false;
};
bool sqliteDBC::updateLRFVerison( uint32_t lrfID, CSTR version ){
if( m_bIsConnected ) {
char tQBuf[MAX_PATH_LEN];

1
lib/App/common/SQLite_dataBinder.h

@ -135,6 +135,7 @@ class sqliteDBC: public dataBinder {
virtual bool updateLRFDetectionProfile( uint32_t lrfID, uint8_t profileID, bool master, uint16_t nOrder, uint16_t nOffset, uint16_t nDelta, uint16_t nWidth, uint16_t nFlip, uint16_t nSun, uint8_t bSST, uint32_t GP, uint32_t spikes );
virtual bool updateLRFSerial( uint32_t lrfID, CSTR Serial );
virtual bool updateLRFUpload( uint32_t id, uint8_t status );
virtual bool updateLRFUnfinishedUploads( uint32_t deviceID );
virtual bool updateLRFVerison( uint32_t lrfID, CSTR version );
virtual bool updateNodePushedCMD( uint32_t CmdID, uint8_t status );
virtual bool updateServerIdentity( uint32_t m_nServerID, CSTR m_sIdentity );

1
lib/App/common/dataBinder.h

@ -181,6 +181,7 @@ class dataBinder{
virtual bool updateLRFDetectionProfile( uint32_t lrfID, uint8_t profileID, bool master, uint16_t nOrder, uint16_t nOffset, uint16_t nDelta, uint16_t nWidth, uint16_t nFlip, uint16_t nSun, uint8_t bSST, uint32_t GP=0, uint32_t spikes=0 ){ return false;};
virtual bool updateLRFUpload( uint32_t id, uint8_t status ){ return false;};
virtual bool updateLRFUnfinishedUploads( uint32_t deviceID ){ return false;};
virtual bool updateMediaServerStream( uint32_t id, CSTR mrl=NULL, CSTR key = NULL ){ return false;};
virtual bool updateNetworkNode( bool OnlineStatus ){ return false;};
virtual bool updateNodePushedCMD( uint32_t CmdID, uint8_t status ){ return false;};

2
lib/App/common/deviceNodeSensor.cpp

@ -156,6 +156,7 @@ deviceNodeSensor::deviceNodeSensor( uint32_t id ):deviceNode( id ),m_oPosition()
if( tDATA != NULL ) {
memcpy( &m_sLRF_DATA, tDATA, sizeof(DBC_LRF_DATA));
free( tDATA );
m_pDBC->updateLRFUnfinishedUploads( m_sNodeData.aux_id );
#ifdef DEBUG
} else {
LOG_ERROR("No Sensor DATA !!");
@ -199,6 +200,7 @@ deviceNodeSensor::deviceNodeSensor( DBC_NODE_DATA *Data ):deviceNode( Data ),m_o
m_pTargetFilter = NULL;
if( m_pDBC ){
reloadDeviceNodeFromDB();
m_pDBC->updateLRFUnfinishedUploads( m_sLRF_DATA.id );
};
};

Loading…
Cancel
Save