jasonacox / tinytuya

Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API).
MIT License
951 stars 172 forks source link

Capture packets on macOS? #433

Closed lmcd closed 9 months ago

lmcd commented 9 months ago

I'm using the built-in Wireless Diagnostics 'Sniffer' tool to capture WiFi packets on macOS to a .pcap file. Opening in Wireshark shows many packets to and from a TuyaSmart device, but the pcap_parse tool just shows: Processing file 1 'trace.pcap' and nothing else.

lmcd commented 9 months ago

I should add that I'd like to capture packets from another device on the network - e.g. a mobile device running Smart Life

lmcd commented 9 months ago

Nevermind. I figured out how to do this with a connected iPhone.