Convert Json to String using Machine Expert base on Codesys plateform

novicecode
2021-09-27
2021-09-28
  • novicecode - 2021-09-27

    Hello Experts,

    I am using a PLC M262 IOT Schneider Electric that using Machine Expert base on Codesys plateform.
    regarding my application that I am working on it and facing problem.
    I need to convert Json to String(not exist on actual library of Machine Expert v1.1) in order to split the data and to use the data separately for programming. {"applicationID":"1"} it will be applicationID = 1 ...so and so.

    the data that I should convert is:
    {"applicationID":"1","applicationName":"T0005987","data":"BQQAMAYEADAJZQAKC2cA+AtoOAC6cQxnAO4=","devEUI":"647fda0000007fa9","deviceName":"T0005987","fCnt":5240,"fPort":10,"rxInfo":[{"altitude":0,"latitude":0,"loRaSNR":14.2,"longitude":0,"mac":"24e124fffef128ea","name":"Local Gateway","rssi":-39,"time":"2021-09-11T08:14:00.931916Z"}],"time":"2021-09-11T08:14:00.931916Z","txInfo":{"adr":true,"codeRate":"4/5","dataRate":{"bandwidth":125,"modulation":"LORA","spreadFactor":7},"frequency":868300000}}

    Thanks in advances for your precious support.
    Best regards,

     

Log in to post a comment.