softScheck / tplink-smartplug

TP-Link WiFi SmartPlug Client and Wireshark Dissector
Apache License 2.0
1.13k stars 296 forks source link

Empty result? #21

Closed maxdad closed 7 years ago

maxdad commented 7 years ago

Here is what I get from a jason query, did I do anything wrong? The script runs fine with "-c info" and returned meaningful result.

./tplink-smartplug.py -t -j {"emeter":{"get_realtime":{}}} ('Sent: ', '{emeter:{get_realtime:{}}}') ('Received: ', '')

maxdad commented 7 years ago

Never mind, I figured out that I have to escape the " in jason, like this: -j {\"emeter\":{\"get_realtime\":{}}}