mqtt-sensord/mqtt_sensord/mqttlib/__init__.py

9 lines
157 B
Python

import sys
if sys.implementation.name == 'micropython':
from .esp import MQTTClient
else:
from .paho_mqtt import MQTTClient
__all__ = [MQTTClient]