Skip to main content

xbee900_HIT

Installation

python3 -m pip install xbee900_HIT

Example

send

from xbee900_HIT import xbee
import logging
logging.basicConfig(filename='xbee.log',
                    format='%(asctime)s %(message)s', level=logging.INFO)


def send():
    device = xbee.Xbee('/dev/tty.usbserial-2', 9600)
    with open('3KB.txt', 'rb') as f:
        data = f.read()
        # broadcast
        device.send_packet(data)

    with open('1KB.txt', 'rb') as f:
        data = f.read()
        # point2point
        device.send_packet(data, remoteAddr="0013A20041BB7684")


send()

receive

from xbee900_HIT import xbee
import logging

logging.basicConfig(filename='xbee.log',
                    format='%(asctime)s %(message)s', level=logging.INFO)


def receive():
    device = xbee.Xbee('/dev/tty.usbserial-1', 230400)
    while True:
        data, remote = device.receive_packet()
        print(f'from {remote} :length of data:{len(data)},receive data: {data}')


receive()

Metadata

Release files for xbee900-HIT 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xbee900-HIT 0.1.2
File Size Uploaded Provenance Actions
xbee900_HIT-0.1.2.tar.gz 5.7 kB Without provenance Details for xbee900_HIT-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xbee900-HIT 0.1.2
File Interpreter ABI Platform Actions
xbee900_HIT-0.1.2-py3-none-any.whl Python 3 none any Details for xbee900_HIT-0.1.2-py3-none-any.whl

Total release size: 13.0 kB

Release files / xbee900_HIT-0.1.2.tar.gz

Download URL xbee900_HIT-0.1.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e4d3b8a0d227e618c055197133f8b36aa6f0719e38739ae65e04391a17310f0d
BLAKE2b-256 checksum
How to use checksums
cd82267b2cef0bdc089e234ebed6431f78e1be776d9ff45fd8c6190d7891b0c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / xbee900_HIT-0.1.2-py3-none-any.whl

Download URL xbee900_HIT-0.1.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e09c3ef14d135070d468ab007893daed4086596f47af489f4379a407badfd23c
BLAKE2b-256 checksum
How to use checksums
69302f25f3352e439fe83dd9f73d73db20fb8c67c3f63a1a665a12f6395848cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for xbee900-HIT 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page