MQTT Sub String

Forum Home Forums Communicating with Devices MQTT Sub String

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8482
    Avatarframatech
    Participant

    Hello 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 you

    Config 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>
    !!

    #8496
    MikhailMikhail
    Moderator

    Hi,

    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?

    #8616
    Avatarlizhouzhou
    Participant

    Hello
    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 source

    Most sincere wishes

    #8621
    MikhailMikhail
    Moderator

    Hello,

    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.

    #8627
    Avatarlizhouzhou
    Participant

    Hello
    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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.