Comp-490-SeniorProject / site

MIT License
0 stars 1 forks source link

Device communication #65

Closed MarkKoz closed 2 years ago

MarkKoz commented 2 years ago

Related issue: #28

When a new test is created, Django Q is used to schedule a function that will publish a message to a topic the device listens to. Currently, the topic used is test/dc/subtopic. This will change once we implement separate topics per device.

Instructions in CONTRIBUTING.md were updated with information on how to specify AWS credentials. To test, you can use the "MQTT test client" in the AWS management console. Subscribe to the aforementioned topic and observe the messages coming in. The payload should just be a sensor ID and a unique test history ID.

What's not resolved yet with #28 is separate topics per device, and dealing with errors reported by the device. These issues will be addressed separately.