Skip to main content

SDK for FACADE system API

Project description

facade_sdk

About SDK

This package is for the Smart Manufactory Research on the FANUC robot. This is mainy for the publisher devices who need to send data to the defined broker. Rather than having devices create their own MQTT connection, this facade hides those details and makes it easy for devices to send data by simply creating a client object.

Installing Library

To install, run pip install facade-sdk. You can also download the code via this github.

How to Use

After installing the library, you can start creating a user object to send data. See test for the full code.

  1. Import the libary: from package.client import Client
  2. Create client object: client = Client(broker_ip="", client_type=Client.CAMERA, device_id="Camera923", auto_connect=True, broker_port=1234, timeout=60)
  • broker_ip is the IP address of the broker. Please ask DATA TEAM for what that address is. It needs to be as a string.

  • client_type is the type of client you are. There are currently four options: CAMERA, IMU, AI, and ROBOT. They are static so you can either type them as a string or use Client.<type> where the is one of the options.

  • device_id is the ID of the device. This can be anything as a string, but would be more helpful if it is the physical ID of that device.

  • auto_connect is set to True by default. Once you create the object, it will autoconnect to the broker but it is possible to connect manually.

  • broker_port is set by default to 1883 but can change if needed or if there is multiple brokers.

  • timeout is how long till a connection timeout occurs or broker doesn't respond in time. Defaultly set as 60.

  1. Publish data: client.publish("Hi there!")
  • You can publish anything but needs to be a string. Processing will take the string into a json so it is perferly if it in json format or csv format.

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

facade_sdk-0.4.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

facade_sdk-0.4.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file facade_sdk-0.4.2.tar.gz.

File metadata

  • Download URL: facade_sdk-0.4.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for facade_sdk-0.4.2.tar.gz
Algorithm Hash digest
SHA256 907e61c0363262b5f18b461fd5d64e74a54e74da4e5f1c3fe499e38c30375a88
MD5 8ac2bc14b10ac88b6c2be5fc2bd12b64
BLAKE2b-256 960914cc5cec08092ecbdfa5c9ce83b67ffaaa30677911d649977300bd7d2ade

See more details on using hashes here.

File details

Details for the file facade_sdk-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: facade_sdk-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for facade_sdk-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5b2b2499d31610b519ff5ab5e68a97352f5a7891fa45c2c01dc3b634d610952a
MD5 9c91329c1f19f7afeb556502e997e5db
BLAKE2b-256 d411646189c5583e3648a5462a9836565c75bd195a4aaff622d735003170da79

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