Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Gustafsson committed Oct 8, 2024
2 parents 7d72784 + 28e3550 commit 61e406b
Show file tree
Hide file tree
Showing 9 changed files with 1,667 additions and 1,975 deletions.
2,992 changes: 1,248 additions & 1,744 deletions OPC_UA_Clients/Release1/NodeOPCUA_IJT_Client/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions OPC_UA_Clients/Release1/basic_node_opcua/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"node-opcua": "2.130.0",
"node-opcua-nodeset-ijt": "2.128.0"
"node-opcua": "2.133.0",
"node-opcua-nodeset-ijt": "2.133.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export default class CommonPropertyView {
let value = eval(p) // eslint-disable-line
if (line1.innerText === 'ResultEvaluation:') {
line1.innerText = 'ResultStatus:'
if (value === 'ResultEvaluationEnum.OK') {
console.log('TEST VALUE:' + value)
if (value === '1') {
value = 'OK'
line2.style.color = 'green'
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ export default class USDemo extends BasicScreen {
button1.innerText = 'Select program 1'
button1.classList.add('demoButton')
buttonArea.appendChild(button1)
button1.addEventListener('click', this.selectJoiningProcess(this.settings.JoiningProcess1))
button1.addEventListener('click', () => this.selectJoiningProcess(this.settings.JoiningProcess1))

// Handling of button 2 (calling select process)
const button2 = document.createElement('button')
button2.innerText = 'Select program 2'
button2.classList.add('demoButton')
buttonArea.appendChild(button2)
button2.addEventListener('click', this.selectJoiningProcess(this.settings.JoiningProcess2))
button2.addEventListener('click', () => this.selectJoiningProcess(this.settings.JoiningProcess2))

const resultArea = document.createElement('div')
resultArea.style.width = '80%'
Expand Down
3 changes: 3 additions & 0 deletions OPC_UA_Clients/Release2/IJT_Web_Client/Python/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ async def methodcall(self, data):
method = self.client.get_node(IdObjectToString(methodNode)) # get the method node

print("METHODCALL: " + IdObjectToString(objectNode))
print('METHOD DATA..... STARTS....')
print(data)
print('METHOD DATA..... ENDS....')

attrList = []
attrList.append(method)
Expand Down
Loading

0 comments on commit 61e406b

Please sign in to comment.