diff --git a/CLC-qthing/SiliconTorch/FxCyanF.cpp b/CLC-qthing/SiliconTorch/FxCyanF.cpp index 806ee40aabb7ef0b74dcac89039796887c36475a..4730d174efaff642b47e6187c88bfe13a9a4523e 100644 --- a/CLC-qthing/SiliconTorch/FxCyanF.cpp +++ b/CLC-qthing/SiliconTorch/FxCyanF.cpp @@ -315,30 +315,30 @@ void SiliconTorch::FxCyanF::callPacketCallback() { void SiliconTorch::FxCyanF::publishBaseChannel() { char tmp[16]; snprintf(tmp, sizeof(tmp), "%i", this->getBaseChannel()); - publish_message(DEVICE_NAMESPACE + "CyanLight/channel", tmp); + publish_message(this->genDeviceTopic("channel"), tmp); } void SiliconTorch::FxCyanF::publishChannelCount() { char tmp[16]; snprintf(tmp, sizeof(tmp), "%i", this->getChannelCount()); - publish_message(DEVICE_NAMESPACE + "CyanLight/channelCnt", tmp); + publish_message(this->genDeviceTopic("channelCnt"), tmp); } void SiliconTorch::FxCyanF::publishFrequency() { char tmp[16]; snprintf(tmp, sizeof(tmp), "%i", this->getFrequency()); - publish_message(DEVICE_NAMESPACE + "CyanLight/frequency", tmp); + publish_message(this->genDeviceTopic("frequency"), tmp); } void SiliconTorch::FxCyanF::publishResolution() { char tmp[16]; snprintf(tmp, sizeof(tmp), "%i", this->getResolution()); - publish_message(DEVICE_NAMESPACE + "CyanLight/resolution", tmp); + publish_message(this->genDeviceTopic("resolution"), tmp); } void SiliconTorch::FxCyanF::publishFrqRes() { char tmp[32]; snprintf(tmp, sizeof(tmp), "%i%s%i", this->getFrequency(), delimiter.c_str(), this->getResolution()); - publish_message(DEVICE_NAMESPACE + "CyanLight/frqres", tmp); + publish_message(this->genDeviceTopic("frqres"), tmp); }