ledenet_api 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ledenet/device_discovery.rb +5 -2
- data/lib/ledenet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8e62ef0ba30a878e092cfc6b9c00a9285e52fb2
|
4
|
+
data.tar.gz: 012b023d53d167c133d93a2da22a3963b069cc27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f8f635dd04466eed819bea8e0d1f752665332974eec01f9612e65052faee166695449c0154a39397ef7ee9bcd47c1ab414405d423ef59474a5212c6f14fb38e
|
7
|
+
data.tar.gz: e203a19cc9ea01064fdccbb7564a434a958372166eaa06a754b8137bd5b1a5d8e93bda880915d4868603a7461d79b879eae0956d6e53ee6c965a9750c2343b8b
|
@@ -47,8 +47,11 @@ module LEDENET
|
|
47
47
|
data = send_socket.recv(1024)
|
48
48
|
|
49
49
|
device = LEDENET::Device.new(data)
|
50
|
-
|
51
|
-
|
50
|
+
|
51
|
+
if device.ip and device.hw_addr and device.model
|
52
|
+
discovered_devices.push(device)
|
53
|
+
discovered_models.add(device.model)
|
54
|
+
end
|
52
55
|
end
|
53
56
|
end
|
54
57
|
rescue Timeout::Error
|
data/lib/ledenet/version.rb
CHANGED