import paho.mqtt.client as mqtt import json class data_handle(object): # def __init__(self): def data_to_array(jsonStr): data = json.loads(jsonStr)