Communication handling for all MeT IOT devices
Project description
MeT IOT Communication
Useful Links
Changelog v0.1.3
- Improved memory deallocation sequence during shutdown to reduce pointer corruption.
Known issues
- Exit Signal (SIGABRT/SIGSEGV): Upon exiting the Python interpreter, a
free(): invalid pointererror may occur.- Reason: This is a known teardown conflict between the Python Garbage Collector and the C++ Runtime (libstdc++). It occurs after all user code has executed.
- Impact: None. This does not affect data transmission or device logic during the program's lifecycle.
How To Use
Importing the Library
Use pip to install the library
pip install MeTIOT
[!NOTE] This library is not pre-compiled. You must have installed on your system (Other version may work but are official unsupported):
- GCC >= 15.2.1
- CMake >= 3.10
Programming with the Library
Testing the library imported successfully
You can use this code to test you can successfully import the library into your code.
import MeTIOT
client = MeTIOT.DeviceClient("0.0.0.0", 12345)
print(type(client))
print("MeTIOT import successful!")
Using the library
For further information on how to use this library refer to the PYTHON_LIB_GUIDE.md document.
How to compile and use from this repository
Linux based systems:
- Clone the repository
git clone https://github.com/Microelectronic-Technologies/MeTIOTCommunication.git
- Navigate into repository
cd MeTIOTCommunication/
- Create and navigate into build directory
mkdir build
cd build
- Compile library using CMake
cmake ..
cmake --build . --config Release
- Export path to python
export PYTHONPATH=./src/python_bindings:$PYTHONPATH
- Now you can use and import the library in your current directory
- (optional) Test the library is python
python3
import MeTIOT
client = MeTIOT.DeviceClient("0.0.0.0", 12345)
type(client)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
metiot-0.1.4.tar.gz
(97.9 kB
view details)
File details
Details for the file metiot-0.1.4.tar.gz.
File metadata
- Download URL: metiot-0.1.4.tar.gz
- Upload date:
- Size: 97.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a571f2d0bcd748c2aaa433b493f18e87c498aaab67a452cc455545e9de922d6a
|
|
| MD5 |
26bca89f041d11b728d1aec40fff9847
|
|
| BLAKE2b-256 |
27834dd7f5406a18dbc77b38778edd2fbe7816e8bc54e4a7a095acb8c450cef9
|