Skip to content

Commit 1733dc7

Browse files
authored
Remove pub-sub samples (moved to SDK) (aws#85)
1 parent 644dead commit 1733dc7

File tree

6 files changed

+4
-919
lines changed

6 files changed

+4
-919
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,3 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}-config.cmake"
297297

298298
enable_testing()
299299
add_subdirectory(tests)
300-
add_subdirectory(samples/mqtt_pub_sub)
301-
add_subdirectory(samples/raw_mqtt_pub_sub)

README.md

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ More protocols and utilities are coming soon, so stay tuned.
1616

1717
The C99 libraries are already included for your convenience when you specify the `-DBUILD_DEPS=ON` CMake argument.
1818

19-
If you want to manage these dependencies manually (e.g. you're using them in other projects), simply specify
19+
If you want to manage these dependencies manually (e.g. you're using them in other projects), simply specify
2020
`-DCMAKE_INSTALL_PREFIX` to point to the directory where you have them installed.
2121

2222
## Dependencies?
@@ -25,11 +25,11 @@ If you want to manage these dependencies manually (e.g. you're using them in oth
2525
There are no non-OS dependencies that AWS does not own, maintain, and ship.
2626

2727
### Unix
28-
The most likely answer is: none that you should care about.
28+
The most likely answer is: none that you should care about.
2929

3030
We do depend on an openssl compatible libcrypto implementation being in your path if you are on a
3131
unix system. Note: we do not actually use libssl. The most likely scenario is that libcrypto is already installed on your system. However, since
32-
many linux distributions these days do not provide a 32-bit libcrypto package, if you're trying to perform a 32-bit build you will
32+
many linux distributions these days do not provide a 32-bit libcrypto package, if you're trying to perform a 32-bit build you will
3333
likely need to build and install libcrypto from source.
3434

3535
## Common Usage
@@ -96,33 +96,6 @@ Lastly, you will need a client or server bootstrap to use a client or server pro
9696
non-blocking and event driven, this handles most of the "callback hell" inherent in the design. Assuming you aren't partitioning
9797
threads for particular use-cases, you can have a single instance of this that you pass to multiple clients.
9898

99-
## Sample
100-
101-
For a working Mqtt example, see samples/mqtt_pub_sub/main.cpp. To run the sample, ensure that you have added
102-
iot:Publish, iot:Receive, and iot:Subscribe permissions to your Thing's policy for topic/a/b:
103-
104-
```json
105-
{
106-
"Effect": "Allow",
107-
"Action": [
108-
"iot:Receive",
109-
"iot:Publish"
110-
],
111-
"Resource": [
112-
"arn:aws:iot:<your-region>:<your-id>:topic/a/b"
113-
],
114-
},
115-
{
116-
"Effect": "Allow",
117-
"Action": [
118-
"iot:Subscribe"
119-
],
120-
"Resource": [
121-
"arn:aws:iot:<your-region>:<your-id>:topicfilter/a/b"
122-
]
123-
}
124-
```
125-
12699
## License
127100

128-
This library is licensed under the Apache 2.0 License.
101+
This library is licensed under the Apache 2.0 License.

samples/mqtt_pub_sub/CMakeLists.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)