Skip to main content

Module for handling mission control messages to be sent to a Drone via MQTT.

Project description

Usage:

Once installed, import the module with: import mc.mc_functions as mc

Module Functions:

  • publishMessage: Used to publish messages to the Mosquitto Broker under a specified topic.

  • subscribeToAll: Used to subscribe to all communication topics under the Mosquitto Broker. Receives messages and saves them to a local directory named messagingData in JSON files according to the topic which the message was published under. (eg. messagingData/navigation.json).

  • publishFile: Publishes saved JSON to specified S3 bucket for secure storage and further analysis.

  Function Usage (note that all arguments should be passed as Strings):      publishMessage(messagingTopic, message, user, password, ec2ipv4Address)

     publishFile(topic, subTopic, bucketName, fileName)

     subscribeToAll(username, password, ec2ipv4Address)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcMqttComms-0.1.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcMqttComms-0.1.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file mcMqttComms-0.1.2.tar.gz.

File metadata

  • Download URL: mcMqttComms-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for mcMqttComms-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2a5caf42da8f5c8586c27168a8fa1722fc3628b6d778bef9974cbe34d05f8b81
MD5 60d0dd7d55eba6c5e4f312d2975add64
BLAKE2b-256 e4e5cb7706a7d85a72b9ec3fab59f45509bb1c841e0ecd0b91a77ea47e0db081

See more details on using hashes here.

File details

Details for the file mcMqttComms-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: mcMqttComms-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for mcMqttComms-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7b4e60685f731518eed5f21b53d796d9f3cc4f7b6804471a0c4826cb010b0a
MD5 e159f1a2354d29a1df4aa88998f22caa
BLAKE2b-256 1c9a5a25f4b5d871159317f5562d7db706ac507d1735f37b9ce5587f04ca0ea8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page