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.