Skip to content

Instantly share code, notes, and snippets.

View chintal's full-sized avatar

Chintalagiri Shashank chintal

View GitHub Profile
from dataclasses import dataclass
from twisted import logger
from twisted.internet import reactor
from twisted.application import service
from paho.mqtt import client as mqtt
from paho.mqtt.enums import MQTTProtocolVersion
from paho.mqtt.enums import CallbackAPIVersion
@chintal
chintal / test.py
Last active September 1, 2017 16:11
#!/usr/bin/env python
# encoding: utf-8
import os
import inspect
import time
import copy
from twisted.internet.protocol import Factory
"""
This file is part of qicada
See the COPYING, README, and INSTALL files for more information
"""
from __future__ import print_function
import logging
import usb