Important Update:

- DataTreeCore:
  - Rename enum EDataType -> EJsonDataType
- DeviceCore:
  - Rename enum EMBDataType -> EDeviceDataType
  - Add method GetNextTypeDevice() method
  - Bug fix: Add Type Name: 0 -> "none"
  - Added permanent Event Channel to TDevice
  - Add param Type to TDevice
  - Removed UpdateInterval/Timeout params & methods from TDevice
  - Separated DeviceInit() method from Init()
  - Add param DeviceInit to force/avoid DeviceInit() in Init()
  - Renamed and restructured SetUpdate() & SetParamScan() methods to:
      SetParamAccess() & SetParamEvent()
  - Converted DestroyDevice() and DestroyDeviceParam() to inline methods
  - Moved methods GetCmdParam() and HandleCommand() from CModbusInterface
  - Renamed TDeviceParam field:
    UpdateInterval/Timeout -> EventInterval/Timeout
  - Renamed TDeviceParam field: Scan -> Read
  - Added TDeviceParam field: Write
This commit is contained in:
Charl Wentzel
2018-12-11 19:55:44 +02:00
parent 07f746db2a
commit 3f568364da
4 changed files with 393 additions and 123 deletions

View File

@@ -353,7 +353,7 @@ bool CDataMember::DeleteCh( const char * Path )
}
//---------------------------------------------------------------------------
bool CDataMember::SetValuePtr( EDataType pType, const char * pValue, int pLen )
bool CDataMember::SetValuePtr( EJsonDataType pType, const char * pValue, int pLen )
{
Clear();
Type = pType;
@@ -367,7 +367,7 @@ bool CDataMember::SetValuePtr( EDataType pType, const char * pValue, int pLen )
}
//---------------------------------------------------------------------------
bool CDataMember::SetValue( EDataType pType, const char * pValue, int pLen )
bool CDataMember::SetValue( EJsonDataType pType, const char * pValue, int pLen )
{
// Clear & Update Type
Clear();
@@ -511,7 +511,7 @@ const char * CDataMember::GetChName( const char * Path )
}
//---------------------------------------------------------------------------
EDataType CDataMember::GetChType( const char * Path )
EJsonDataType CDataMember::GetChType( const char * Path )
{
CDataMember * Member;