opcua 0.2 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +4 -3
- data/example/client.rb +3 -3
- data/lib/opcua/client.so +0 -0
- data/lib/opcua/server.so +0 -0
- data/opcua.gemspec +3 -3
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 463ec505c576b9edfc74c7d8e7651bc826f9c9feb3be75525286a2c87bb31e8d
|
4
|
+
data.tar.gz: 5f0aa0fb2fa8dd63fad3a9d61c8d5720bb93ba3325b4a5a87d68d27d6c66f90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc7186f633586d8f7a03b50737089f1ffefc2f0afbb2893b608c53d30dabd1e878182530dcded718440f10243adc752408ee7b170fe1e9b8213fc2d6bd3cb272
|
7
|
+
data.tar.gz: 7fed3d184cf5b476d1390b429507d9e635a67d9df2c39d12eded27f44b3192d7805b9b98fff5de1175684bb1e925b5925f1220f8483433d982e17c9af710d0e9
|
data/Rakefile
CHANGED
@@ -17,12 +17,13 @@ Rake.application.clear
|
|
17
17
|
|
18
18
|
task :default => [:gem]
|
19
19
|
|
20
|
-
Gem::PackageTask.new(spec)
|
20
|
+
pkg = Gem::PackageTask.new(spec) { |pkg|
|
21
21
|
pkg.need_zip = true
|
22
22
|
pkg.need_tar = true
|
23
|
+
`mkdir pkg`
|
23
24
|
`rm pkg/* -rf`
|
24
|
-
`ln -sf #{pkg.name}.gem
|
25
|
-
|
25
|
+
`ln -sf #{pkg.name}.gem pkg/#{spec.name}.gem`
|
26
|
+
}
|
26
27
|
|
27
28
|
task :push => :gem do |r|
|
28
29
|
`gem push pkg/opcua.gem`
|
data/example/client.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
require_relative '../lib/opcua/client'
|
3
3
|
|
4
|
-
### username & pass in url
|
4
|
+
### username & pass in url (e.g. siemens)
|
5
5
|
# client = OPCUA::Client.new("opc.tcp://OpcUaClient:SUNRISE@localhost:4840")
|
6
6
|
|
7
7
|
client = OPCUA::Client.new("opc.tcp://localhost:4840")
|
8
|
+
client.subscription_interval = 100 # default 500
|
8
9
|
|
9
|
-
node = client.get 2, 874565491
|
10
|
+
node = client.get 2, 874565491 # get node from nodeid
|
10
11
|
node.on_change do |value,timestamp|
|
11
12
|
p value
|
12
13
|
end
|
13
14
|
|
14
|
-
client.publishing_interval = 100
|
15
15
|
while true
|
16
16
|
client.check_subscription
|
17
17
|
sleep client.publishing_interval / 1000
|
data/lib/opcua/client.so
CHANGED
Binary file
|
data/lib/opcua/server.so
CHANGED
Binary file
|
data/opcua.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "opcua"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.4"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of opcua (open62541) ruby bindings. C performance, Ruby elegance, simplicity, and productivity."
|
@@ -9,7 +9,6 @@ Gem::Specification.new do |s|
|
|
9
9
|
|
10
10
|
s.files = Dir['{example/**/*,tools/**/*,lib/**/*,contrib/logo*}'] + %w(COPYING Rakefile opcua.gemspec README.md)
|
11
11
|
s.extensions = Dir["ext/**/extconf.rb"]
|
12
|
-
p s.extensions
|
13
12
|
s.require_path = 'lib'
|
14
13
|
s.extra_rdoc_files = ['README.md']
|
15
14
|
s.bindir = 'tools'
|
@@ -21,6 +20,7 @@ Gem::Specification.new do |s|
|
|
21
20
|
s.email = 'juergen.mangler@gmail.com'
|
22
21
|
s.homepage = 'https://github.com/etm/opcua-smart'
|
23
22
|
|
24
|
-
s.add_runtime_dependency '
|
23
|
+
s.add_runtime_dependency 'daemonite', '~> 0'
|
24
|
+
s.add_development_dependency 'rake', '~> 12'
|
25
25
|
s.add_development_dependency 'rake-compiler', '~> 1.0'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opcua
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -9,22 +9,36 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: tools
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-04-
|
12
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: daemonite
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0
|
20
|
+
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rake
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '12'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '12'
|
28
42
|
- !ruby/object:Gem::Dependency
|
29
43
|
name: rake-compiler
|
30
44
|
requirement: !ruby/object:Gem::Requirement
|