mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
add DPT 27.001
This commit is contained in:
parent
e69f63611a
commit
f0cd44cefa
@ -87,6 +87,9 @@ int KNX_Decode_Value(uint8_t* payload, size_t payload_length, const Dpt& datatyp
|
||||
// DPT 26.* - Scene Info
|
||||
if (datatype.mainGroup == 26 && datatype.subGroup == 1 && datatype.index <= 1)
|
||||
return busValueToSceneInfo(payload, payload_length, datatype, value);
|
||||
// DPT 27.001 - 32 Bit field
|
||||
if (datatype.mainGroup == 27 && datatype.subGroup == 1 && !datatype.index)
|
||||
return busValueToSigned32(payload, payload_length, datatype, value);
|
||||
// DPT 28.* - Unicode String
|
||||
if (datatype.mainGroup == 28 && datatype.subGroup == 1 && !datatype.index)
|
||||
return busValueToUnicode(payload, payload_length, datatype, value);
|
||||
@ -206,6 +209,9 @@ int KNX_Encode_Value(const KNXValue& value, uint8_t* payload, size_t payload_len
|
||||
// DPT 26.* - Scene Info
|
||||
if (datatype.mainGroup == 26 && datatype.subGroup == 1 && datatype.index <= 1)
|
||||
return valueToBusValueSceneInfo(value, payload, payload_length, datatype);
|
||||
// DPT 27.001 - 32 Bit Field
|
||||
if (datatype.mainGroup == 27 && datatype.subGroup == 1 && !datatype.index)
|
||||
return valueToBusValueUnsigned32(value, payload, payload_length, datatype);
|
||||
// DPT 28.* - Unicode String
|
||||
if (datatype.mainGroup == 28 && datatype.subGroup == 1 && !datatype.index)
|
||||
return valueToBusValueUnicode(value, payload, payload_length, datatype);
|
||||
|
Loading…
Reference in New Issue
Block a user