diff --git a/src/knx/application_layer.cpp b/src/knx/application_layer.cpp index 2e2403e..74f99d8 100644 --- a/src/knx/application_layer.cpp +++ b/src/knx/application_layer.cpp @@ -429,7 +429,7 @@ void ApplicationLayer::systemNetworkParameterReadResponse(Priority priority, Hop //TODO: ApplicationLayer::domainAddressSerialNumberWriteRequest() //TODO: ApplicationLayer::domainAddressSerialNumberReadRequest() void ApplicationLayer::domainAddressSerialNumberReadResponse(Priority priority, HopCountType hopType, uint8_t* rfDoA, - uint8_t* knxSerialNumber) + const uint8_t* knxSerialNumber) { CemiFrame frame(13); APDU& apdu = frame.apdu(); diff --git a/src/knx/application_layer.h b/src/knx/application_layer.h index 9d7223f..401a653 100644 --- a/src/knx/application_layer.h +++ b/src/knx/application_layer.h @@ -134,7 +134,7 @@ class ApplicationLayer uint16_t propertyId, uint8_t* testInfo, uint16_t testInfoLength, uint8_t* testResult, uint16_t testResultLength); void domainAddressSerialNumberReadResponse(Priority priority, HopCountType hopType, uint8_t* rfDoA, - uint8_t* knxSerialNumber); + const uint8_t* knxSerialNumber); void IndividualAddressSerialNumberReadResponse(Priority priority, HopCountType hopType, uint8_t* rfDoA, uint8_t* knxSerialNumber); #pragma endregion diff --git a/src/knx/bau27B0.cpp b/src/knx/bau27B0.cpp index bbddef4..c9cf495 100644 --- a/src/knx/bau27B0.cpp +++ b/src/knx/bau27B0.cpp @@ -116,8 +116,8 @@ void Bau27B0::loop() #endif } -void Bau27B0::domainAddressSerialNumberWriteIndication(Priority priority, HopCountType hopType, uint8_t* rfDoA, - uint8_t* knxSerialNumber) +void Bau27B0::domainAddressSerialNumberWriteIndication(Priority priority, HopCountType hopType, const uint8_t* rfDoA, + const uint8_t* knxSerialNumber) { // If the received serial number matches our serial number // then store the received RF domain address in the RF medium object @@ -125,7 +125,7 @@ void Bau27B0::domainAddressSerialNumberWriteIndication(Priority priority, HopCou _rfMediumObj.rfDomainAddress(rfDoA); } -void Bau27B0::domainAddressSerialNumberReadIndication(Priority priority, HopCountType hopType, uint8_t* knxSerialNumber) +void Bau27B0::domainAddressSerialNumberReadIndication(Priority priority, HopCountType hopType, const uint8_t* knxSerialNumber) { // If the received serial number matches our serial number // then send a response with the current RF domain address stored in the RF medium object diff --git a/src/knx/bau27B0.h b/src/knx/bau27B0.h index 91f1466..8b270b6 100644 --- a/src/knx/bau27B0.h +++ b/src/knx/bau27B0.h @@ -26,13 +26,13 @@ class Bau27B0 : public BauSystemB #ifdef USE_CEMI_SERVER CemiServer _cemiServer; CemiServerObject _cemiServerObject; -#endif +#endif - void domainAddressSerialNumberWriteIndication(Priority priority, HopCountType hopType, uint8_t* rfDoA, - uint8_t* knxSerialNumber); - void domainAddressSerialNumberReadIndication(Priority priority, HopCountType hopType, uint8_t* knxSerialNumber); + void domainAddressSerialNumberWriteIndication(Priority priority, HopCountType hopType, const uint8_t* rfDoA, + const uint8_t* knxSerialNumber) override; + void domainAddressSerialNumberReadIndication(Priority priority, HopCountType hopType, const uint8_t* knxSerialNumber) override; void individualAddressSerialNumberWriteIndication(Priority priority, HopCountType hopType, uint16_t newIndividualAddress, - uint8_t* knxSerialNumber); - void individualAddressSerialNumberReadIndication(Priority priority, HopCountType hopType, uint8_t* knxSerialNumber); + uint8_t* knxSerialNumber) override; + void individualAddressSerialNumberReadIndication(Priority priority, HopCountType hopType, uint8_t* knxSerialNumber) override; }; #endif \ No newline at end of file diff --git a/src/knx/rf_medium_object.cpp b/src/knx/rf_medium_object.cpp index 0d9badc..d731975 100644 --- a/src/knx/rf_medium_object.cpp +++ b/src/knx/rf_medium_object.cpp @@ -115,7 +115,7 @@ uint8_t* RfMediumObject::rfDomainAddress() return _rfDomainAddress; } -void RfMediumObject::rfDomainAddress(uint8_t* value) +void RfMediumObject::rfDomainAddress(const uint8_t* value) { pushByteArray(value, 6, _rfDomainAddress); } diff --git a/src/knx/rf_medium_object.h b/src/knx/rf_medium_object.h index e0685d8..6742a85 100644 --- a/src/knx/rf_medium_object.h +++ b/src/knx/rf_medium_object.h @@ -15,7 +15,7 @@ public: uint16_t saveSize() override; uint8_t* rfDomainAddress(); - void rfDomainAddress(uint8_t* value); + void rfDomainAddress(const uint8_t* value); protected: uint8_t propertyDescriptionCount() override;