Metadata-Version: 2.1
Name: iotcore
Version: 0.0.9
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# iot-core

## Subscribe to MQTT Topic
```
import iotcore


def callback(payload):
    print(f"Received payload in python: {payload}")


core = iotcore.IotCore("mqtt.eclipseprojects.io", 1883, callback)
core.publish("pub/iotcore", "hello")
core.subscribe("sub/iotcore")
core.run()

```
