MCPcopy Index your code
hub / github.com/aws-iot-builder-tools/iot-reference-architectures

github.com/aws-iot-builder-tools/iot-reference-architectures @mqtt-over-websockets-0.3.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release mqtt-over-websockets-0.3.4 ↗ · + Follow
35 symbols 77 edges 7 files 4 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

IoT Reference Architectures

The repo is a place to store architecture diagrams and the code for reference architectures that we refer to in IoT presentations.

Terminology

  • Partner - an entity that builds solutions on AWS that can be integrated into a customer's own AWS account
  • Customer - an entity with an AWS account that can utilize partner solutions

Reference architecture list

  • CloudWatch Events
  • Python - Sets up a CloudWatch Events rule that triggers a Python function when CreateThing is called. The Python function cross-account publishes the event information from a customer's account to a partner's account to give the partner visibility to new devices that a customer creates in their account.
  • Cross-account publish
  • C# - A C# application that can cross-account publish from a partner's account to a customer's account to give the partner the ability to easily share information with their customers. This C# application is for running on EC2, not on AWS Lambda, and includes the necessary role that must be attached to the EC2 instance.
  • Python - A Python Lambda function that can cross-account publish from a partner's account to a customer's account using the AWS IoT Rules Engine
  • MQTT over WebSockets
  • Java
    • Library - A Java library, derived from the AWS IoT Device SDK for Java, that creates vanilla Paho connections over WebSockets to AWS IoT Core
    • Example with Jitpack - An example project that shows how to use the MQTT over WebSocketsJava library with Jitpack and includes tests to validate that the library is working as expected. This example demonstrates how a customer can use the library as a Gradle dependency without duplicating the code.

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 27
Class 4
Function 3
Interface 1

Languages

Java80%
C#11%
Python9%

Modules by API surface

mqtt-over-websockets/java/src/main/java/com/awslabs/aws/iot/websockets/BasicMqttOverWebsocketsProvider.java13 symbols
mqtt-over-websockets-jitpack/java/src/test/java/com/awslabs/aws/iot/websockets/BasicMqttOverWebsocketsProviderTest.java11 symbols
mqtt-over-websockets/java/src/main/java/com/awslabs/aws/iot/websockets/MqttOverWebsocketsProvider.java4 symbols
cross-account-publish/c-sharp/ConsoleApp1/ConsoleApp1/Program.cs4 symbols
cross-account-publish/python/partner-triggered-on-message.py1 symbols
cloudwatch-events/python/partner-triggered-on-create-thing.py1 symbols
cloudwatch-events/python/customer-triggered-on-create-thing.py1 symbols

For agents

$ claude mcp add iot-reference-architectures \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page