Skip to content
Snippets Groups Projects
Commit d8fd0f7d authored by fxk8y's avatar fxk8y :spider:
Browse files

Fixing topics

parent 2353643a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment