aws_iot_device 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -2
- data/lib/aws_iot_device/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8698e71979a6c0f38e479c8ca1f257703412f2a4
|
4
|
+
data.tar.gz: 89070ddd57b8f3a0ddabc0e2c0e6285bb09c21bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afbc707e80509081a1a83bd9c07e8cccbef66d6ae9d84f5867798e0ffd359ea8a3b1321e9d298667aba55d565c1a30c69324bd60088d40870052a2a2806b7cea
|
7
|
+
data.tar.gz: 69e7c4b49cefa62e6e2191e6ce8dbbec37b66646d8daa92d95ee45b0c3d5a5439bb63f751713cc1b0754d9764aca3d8063bdaa443397b4f520a99e9ea4aeaafd
|
data/README.md
CHANGED
@@ -18,7 +18,17 @@ The AWS IoT SDK for Ruby is a gems which enables to manage device registered as
|
|
18
18
|
The client communicates with the AWS IoT platform through the MQTT protocol. An adapter is provided to enable several implementations of the mqtt protocol and thus make the client independent form its back-end library implementation. In the current version, the default settings are using a client based on the ruby-mqtt gems. According to the shadow management, the operations are performed by sending message on the dedicated MQTT topics. The answer could be read on the corresponding MQTT topics, then some treatments could be processed thanks to a system of callback.
|
19
19
|
|
20
20
|
## Installation
|
21
|
-
The
|
21
|
+
The gem is still in a beta version. There is two way to install it, from the `gem` command or directly from sources.
|
22
|
+
- From RubyGems:
|
23
|
+
|
24
|
+
The gem may be find on [RubyGems](https://rubygems.org/gems/aws_iot_device) and installed with the following command:
|
25
|
+
```
|
26
|
+
gem install aws_iot_device
|
27
|
+
```
|
28
|
+
|
29
|
+
- From sources:
|
30
|
+
|
31
|
+
The gem could be download and installed manually:
|
22
32
|
```
|
23
33
|
git clone https://github.com/RubyDevInc/aws-iot-device-sdk-ruby.git
|
24
34
|
cd aws-iot-device-sdk-ruby
|
@@ -26,9 +36,20 @@ bundle install
|
|
26
36
|
```
|
27
37
|
|
28
38
|
## Using the ShadowClient
|
29
|
-
Some examples files are provided in the samples directory. They could be run by the following
|
39
|
+
Some examples files are provided in the samples directory. They could be run by the following commands:
|
30
40
|
```bash
|
41
|
+
### If the gem have been install with the `gem` command
|
42
|
+
ruby "sample_file".rb -c "path to certificate" -a "path to authority certificate" -k "path to key" -H "aws endpoint URI" -t "thing name"
|
43
|
+
|
44
|
+
|
45
|
+
### If the gem have been installed from sources
|
46
|
+
# Including the local libraries
|
31
47
|
ruby -I lib "sample_file".rb -c "path to certificate" -a "path to authority certificate" -k "path to key" -H "aws endpoint URI" -t "thing name"
|
48
|
+
|
49
|
+
# Or
|
50
|
+
|
51
|
+
# With the bundle command
|
52
|
+
bundle exec ruby "sample_file".rb -c "path to certificate" -a "path to authority certificate" -k "path to key" -H "aws endpoint URI" -t "thing name"
|
32
53
|
```
|
33
54
|
|
34
55
|
### Shadow Client
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_iot_device
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pierre Goudet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|