german

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: KpMQTT and Thingsboard #9381
    german
    Participant

    Thanks Mikhail, I used function converter mqtt internal and external data.

    in reply to: KpMQTT and Thingsboard #9290
    german
    Participant

    I have config as Mikhail advise <Topic TopicName=”v1/devices/me/rpc/request/+” QosLevel=”0″ CnlCnt=”4″ JSHandlerPath=”C:\SCADA\ScadaComm\Config\KpMqtt_Job.js” />
    But i dont see anything in Chanel [301,304]. But it had response Json from Thingboard v1/devices/me/rpc/request/523 = {“method”:”setValue”,”params”:80.74}. Now I use the fomular to convert string json and the code test ok in C Program.
    /* get ID = 523 from string “v1/devices/me/rpc/request/523″*/
    const char* GetID(const char* topic){
    const char* reqid = &topic[26];
    return reqid;
    }

    and call function GetID(Cnl) at the inputchanel 301 run server with error
    Line 516, column 15: error CS1519: Invalid token ‘;’ in class, struct, or interface member declaration. Pls help me about that solve. Thanks.

    in reply to: KpMQTT and Thingsboard #9285
    german
    Participant

    Hello every one. I received the Json data feedback from thingsboard server as below
    Receive packet
    v1/devices/me/rpc/request/450 = {“method”:”setValue”,”params”:true}
    Now I want to get value of Attribute “method” and “params”. Can everyone help me. Thanks so much.

Viewing 3 posts - 1 through 3 (of 3 total)