skip to Main Content

how to get my javascript output in json format

success: true datatype: "string" timestamp: 09140820 registerId:123" value: "{"Relay Abc":"Off","Relay Bedf":"On","MP R31":0,"NM R2":-1,"SP R3":-1,"Current":0,"Voltage":0,"Voltage2":51}" deviceID: "5A6B3038-8FA0-43F8-A54B-BCE52902337C" tagName: "k_Test_02" deviceName: "abc_SERVER" image is the javascript code for the function node I want same output as shown just value data to be…

VIEW QUESTION

Javascript – I cant figure out how to make this function execute after the first one is done

I have a function called chat chattext, which purposes is to write text to a box letter by letter. function chattext(chat) { playaudio("talking.mp3"); document.getElementById("chat").style.display = "block"; document.getElementById("chat").innerHTML = ""; var count = 0; function update() { console.log(count); document.getElementById("chat").innerHTML += `${chat.substring(…

VIEW QUESTION
Back To Top
Search