nalkinscloud-mqtt-python-client
MQTT Client package for nalkinscloud project usage
Usage
## activate package logging by:
# logging.getLogger('nalkinscloud_mqtt_python_client')
from nalkinscloud_mqtt_python_client.devices import SwitchDevice
def set_switch_state(state):
print("SET SWITCH STATE HERE")
return state
device = SwitchDevice(set_data_function=set_switch_state)
device.init_broker(broker_host="mosquitto.alpha.nalkins.cloud",
broker_port=8883,
broker_cert=None,
broker_tls=True,
broker_tls_skip=True)
# this client will have default 'on_connect' function, but a custom 'on_message' function
device.init_device(device_id='some_device_id', device_type='sensor', device_password='none', qos=0)
device.connect()
device.subscribe("v1/devices/me/rpc/request/+", 1)
# Start the MQTT Mosquito process loop
device.do_loop_forever()
Metadata
Release files for nalkinscloud-mqtt-python-client 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nalkinscloud_mqtt_python_client-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / nalkinscloud_mqtt_python_client-1.0.3-py3-none-any.whl
| Download URL | nalkinscloud_mqtt_python_client-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9431d8f6f05b1b3bbbe40a5e3bdd818ffa53991fda508006e5c21d1799ebab0
|
|
BLAKE2b-256 checksum How to use checksums |
e45a1b39882f57dfce74f82a54a40374e447080b7ad1cb6bfa0f9aab2a208d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
|
Security for nalkinscloud-mqtt-python-client 1.0.3
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.