Skip to main content

Multi Communication protocol in heart of the C.O.D.D.E. Pi framework

Project description

CODDE Protocol

actions status crates.io pub.dev pypi.org

Multi Communication protocol in heart of the C.O.D.D.E. Pi framework.

This Project is written in Rust, enabling fast serializing/deserializing and data processing. Client side is ported for Dart/Flutter applications, and server side has been translated in python.

Buy Me A Coffee

CODDE Protocol integrates data generated by CODDE Pi App widgets, and received by embedded systems. See https://codde-pi.com to stay tuned about new widgets integration.

Show me the code

With one code structure and a dozen of lines, you can receive data from socket, bluetooth of UART com. Just need a port address and registered actions on data is received :

import codde_protocol
import time

server = CoddePiServer.use_socket('localhost:12345')

def action(*args):
    widget: ToggleButton = args[0]
    print("value received : ", widget.value)
    server.callback(1, ServerStatus.Idle, ConfirmResult(True))

if __name__ == "__main__":
    print('open server...')
    server.open()
    server.on(1, "ToggleButton", action)
    # server.callback(1, cp.ServerStatus.Idle, cp.ConfirmResult(True))
    server.serve()
    time.sleep(2)
    server.close()

Roadmap

Protocols:

  • WebSocket
  • Bluetooth
  • UART
  • HTTP

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

codde_protocol-0.1.4.tar.gz (25.1 kB view details)

Uploaded Source

Built Distribution

codde_protocol-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl (381.5 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

File details

Details for the file codde_protocol-0.1.4.tar.gz.

File metadata

  • Download URL: codde_protocol-0.1.4.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.5.1

File hashes

Hashes for codde_protocol-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ef2644b1837169278cff90025477a524989d1e1b499c8c4b80a38bf21ce42541
MD5 2303a4684108eaf5b905f2dc8576a938
BLAKE2b-256 9bad127aff3a55e0e6bb5efc3e936b5bbaee71dcbf4078aff17f7097542e0b04

See more details on using hashes here.

File details

Details for the file codde_protocol-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for codde_protocol-0.1.4-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 31d1c86ff6fa71c06cf42e565c989b6c6da63dfe934bfa187287117d2455d64f
MD5 b643ee36f68bb2143e2fcd7397dc4cf9
BLAKE2b-256 3c8849878a2ed1a4f79ebebf414c8a440dd19b34068aab942c23528529d187fd

See more details on using hashes here.

Supported by

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