You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function valuesReady(anythingBad, values) {
if (anythingBad) { console.log("SOMETHING WENT WRONG READING VALUES!!!!"); }
console.log(values);
doneReading = true;
if (doneWriting) { process.exit(); }
}
Where does this values come from, and how can I apply it to vue's components data()
The text was updated successfully, but these errors were encountered:
values is the object created and returned by nodeS7 with the variable values from the PLC.
To get this into vue, you'd probably want to build a vue + NodeJS project, where NodeJS is the web server for the project. There are lots of examples if you google "vue node.js server example" and at least one of these should show how an object that exists on the server can work the way you're asking.
I will leave the issue open in case anyone else wants to submit a PR with an example or wants to comment more, but we don't use vue.
function valuesReady(anythingBad, values) {
if (anythingBad) { console.log("SOMETHING WENT WRONG READING VALUES!!!!"); }
console.log(values);
doneReading = true;
if (doneWriting) { process.exit(); }
}
Where does this values come from, and how can I apply it to vue's components data()
The text was updated successfully, but these errors were encountered: