Forum Home › Forums › Communicating with Devices › MQTT Sub String
- This topic has 4 replies, 3 voices, and was last updated 4 years, 7 months ago by
lizhouzhou.
-
AuthorPosts
-
March 10, 2021 at 3:32 pm #8482
framatech
ParticipantHello friends.
I have the following problem. MQTT runs fine, but I have a problem receiving a string. Real, INT, and so on works. Sending a string to the broker works wonderfully. I hope someone can help me where I have the error in the configuration.
Thank youConfig XML
!!
<?xml version=”1.0″ encoding=”utf-8″?>
<DevTemplate>
<MqttParams Hostname=”10.51.50.30″ ClientID=”KpMQTTrs111″ Port=”1883″ UserName=”” Password=””/>
<RapSrvCnf ServerHost=”127.0.0.1″ ServerPort=”10000″ ServerUser=”ScadaComm” ServerPwd=”12345″/>
<MqttSubTopics>
<Topic TopicName=”/mesparam1″ QosLevel=”0″ NumCnl=”200″/>
<Topic TopicName=”/mesparam2″ QosLevel=”0″ NumCnl=”201″/>
</MqttSubTopics>
<MqttPubTopics>
<Topic TopicName=”/mesparam10″ QosLevel=”0″ NumCnl=”202″ PubBehavior=”OnChange” Retain=”true” NDS=”.”/>
</MqttPubTopics>
<MqttPubCmds>
<Topic TopicName=”/mesparam10″ QosLevel=”0″ NumCmd=”1″/>
<Topic TopicName=”/mesparam2″ QosLevel=”0″ NumCmd=”2″/>
</MqttPubCmds>
<MqttSubCmds>
<Topic TopicName=”/mesparam1″ QosLevel=”0″ NumCmd=”10″ CmdType=”St” KPNum=”61″ IDUser=”0″ NumCnlCtrl=”500″/>
<Topic TopicName=”/mesparam2″ QosLevel=”0″ NumCmd=”10″ CmdType=”St” KPNum=”61″ IDUser=”0″ NumCnlCtrl=”500″/>
</MqttSubCmds>
<MqttSubJSs>
</MqttSubJSs>
</DevTemplate>
!!March 11, 2021 at 2:47 pm #8496
MikhailModeratorHi,
Currently the MQTT driver doesn’t support string values. To support strings, update is required.
Also Rapid SCADA version 5 has a limitation of max. 8 Latin characters in tag. Is 8 characters enough for you?
What kind of string values do you need to read?
April 1, 2021 at 4:42 am #8616lizhouzhou
ParticipantHello
about Also Rapid SCADA version 5 has a limitation of max. 8 Latin characters in tag.
This limit how to cancel it pinch, or tell me where to change it in the sourceMost sincere wishes
April 1, 2021 at 12:45 pm #8621
MikhailModeratorHello,
Input channels are stored as 64-bit floating point numbers. I’m not sure that it’s possible to write much more than 8 chars into 64 bits.
April 1, 2021 at 1:07 pm #8627lizhouzhou
ParticipantHello
Can you elevate this 64bits limit, because there will still be cases of long strings in some cases,
If you can, tell me Location of source code,then I can modify and test. -
AuthorPosts
- You must be logged in to reply to this topic.