mqtt-sensord/mqtt_sensord/mqttlib/__init__.py

9 lines
151 B
Python

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