ffi-tellduscore 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/tellduscore.rb +33 -0
- metadata +4 -4
data/lib/tellduscore.rb
CHANGED
@@ -4,11 +4,44 @@ module TelldusCore
|
|
4
4
|
extend FFI::Library
|
5
5
|
ffi_lib "telldus-core"
|
6
6
|
|
7
|
+
callback :TDDeviceEvent, [:int, :int, :string, :int, :pointer], :void
|
7
8
|
callback :TDSensorEvent, [:string, :string, :int, :int, :string, :int, :int, :pointer], :void
|
8
9
|
|
9
10
|
attach_function :tdInit, [], :void
|
11
|
+
attach_function :tdRegisterDeviceEvent, [:TDDeviceEvent, :pointer], :int
|
10
12
|
attach_function :tdRegisterSensorEvent, [:TDSensorEvent, :pointer], :int
|
11
13
|
|
14
|
+
attach_function :tdTurnOn, [:int], :int
|
15
|
+
attach_function :tdTurnOff, [:int], :int
|
16
|
+
attach_function :tdBell, [:int], :int
|
17
|
+
attach_function :tdDim, [:int], :int
|
18
|
+
attach_function :tdExecute, [:int], :int
|
19
|
+
attach_function :tdUp, [:int], :int
|
20
|
+
attach_function :tdDown, [:int], :int
|
21
|
+
attach_function :tdStop, [:int], :int
|
22
|
+
attach_function :tdLearn, [:int], :int
|
23
|
+
attach_function :tdMethods, [:int, :int], :int
|
24
|
+
attach_function :tdLastSendCommand, [:int, :int], :int
|
25
|
+
attach_function :tdLastSendValue, [:int], :string
|
26
|
+
attach_function :tdGetNumberOfDevices, [], :int
|
27
|
+
attach_function :tdGetDeviceId, [:int], :int
|
28
|
+
attach_function :tdGetDeviceType, [:int], :int
|
29
|
+
attach_function :tdGetErrorString, [:int], :string
|
30
|
+
attach_function :tdGetName, [:int], :string
|
31
|
+
attach_function :tdSetName, [:int, :string], :bool
|
32
|
+
attach_function :tdGetProtocol, [:int], :string
|
33
|
+
attach_function :tdSetProtocol, [:int, :string], :bool
|
34
|
+
attach_function :tdGetModel, [:int], :string
|
35
|
+
attach_function :tdSetModel, [:int, :string], :bool
|
36
|
+
|
37
|
+
attach_function :tdGetDeviceParameter, [:int, :string, :string], :string
|
38
|
+
attach_function :tdSetDeviceParameter, [:int, :string, :string], :bool
|
39
|
+
|
40
|
+
attach_function :tdAddDevice, [], :int
|
41
|
+
attach_function :tdRemoveDevice, [:int], :bool
|
42
|
+
|
43
|
+
attach_function :tdSendRawCommand, [:string, :int], :int
|
44
|
+
|
12
45
|
attach_function :tdClose, [], :void
|
13
46
|
attach_function :tdUnregisterCallback, [:int], :void
|
14
47
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-tellduscore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Hallvar Helleseth
|
@@ -18,7 +18,7 @@ cert_chain: []
|
|
18
18
|
date: 2012-08-11 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
|
-
description: Bindings to tellduscore library for interfacing
|
21
|
+
description: Bindings to tellduscore library for interfacing with wireless temperature and humidity sensors, light switches and dimmers
|
22
22
|
email: hallvar@gmail.com
|
23
23
|
executables: []
|
24
24
|
|