Skip to content

Instantly share code, notes, and snippets.

@ahpohl
ahpohl / mitemp_standalone.py
Created March 23, 2020 20:23
Standalone script for Xiaomi LYWSD03MMC temp/humidiy sensor
# -*- coding: utf-8 -*-
import aioblescan as aiobs
from Crypto.Cipher import AES
from threading import Thread, Lock
import asyncio
from time import sleep
import struct
import binascii
class HCIdump(Thread):