Cedopolice
Cedopolice
> What I find interesting is `"version":"3.2"` > > I haven't seen this protocol version, would you be able to capture the traffic when controlling the device locally with the...
And exec.js const TuyaDevice = require('tuyapi'); const Promise = require('bluebird'); const find = require('lodash.find'); const config = require('../config'); module.exports = function exec(params) { const arrayIdentifier = params.deviceType.identifier.split('_'); const id =...
with the script in the readme: `2|test | Connected to device! 2|test | Data from device: json obj data unvalid 2|test | TypeError: Cannot read property '1' of undefined 2|test...
I can capture the traffic with wireshark, what do you need?
i can see activity but not on port 6668

I will try offline with wire shark. With adb: `07-29 14:38:24.888 32185 32520 I ReactNativeJS: Running application "TYRCTApp" with appParams: {"initialProps":{"devInfo":{"isShare":false,"activeTime":1564403895,"uiId":"00000002ic","dps":{"1":false,"101":"0","102":0},"roomId":0,"isVDevice":false,"isAdmin":true,"verSw":"1.0.2","gwId":"bfb9268f215ecc78cdkpiv","isLocalOnline":true,"isOnline":true,"capability":1,"nodeId":"","uiConfig":{},"networkType":"WIFI","uuid":"0c54c85f17da0184","name":"Wi-Fi Smart Switch","icon":"https://images.tuyaeu.com/smart/icon/15335325596i4s1vqxrzo_0.jpg","devId":"bfb9268f215ecc78cdkpiv","attribute":3672960,"isUniversalPanel":false,"ability":0,"homeId":5212741,"appKey":"ekmnwp9f5pnh3trdtpgy","timezoneId":"Europe/Paris","parentId":null,"panelConfig":{"bic":"[{\"code\":\"timer\",\"selected\":true},{\"code\":\"jump_url\",\"selected\":false}]"},"appId":19,"pcc":"","ui":"00000002ic_0.0.8","bv":"11.02","t":1564403903,"uiPhase":"release","schema":{"1":{"type":"obj","name":"开 关","mode":"rw","code":"switch_1","id":"1","schemaType":"bool","iconname":"icon-power","property":"{\"type\":\"bool\"}"},"101":{"type":"obj","name":"继电器上电状态","mode":"rw","code":"relay_status","id":"101","schemaType":"enum","iconname":null,"property":"{\"range\":[\"0\",\"1\",\"2\"],\"type\":\"enum\"}"},"102":{"type":"obj","name":"倒计时","mode":"rw","code":"countdown","id":"102","schemaType":"value","iconname":null,"property":"{\"max\":86400,\"min\":0,\"scale\":0,\"step\":1,\"type\":\"value\",\"unit\":\"s\"}"}},"productId":"zWqOK04ovOjw0Pcw"}},"rootTag":1}. __DEV__ === false, development-level warning are...
And with device and app connected on computer hotspot, with wireshark, offline:
yes, i had successfully control the device, is it possible? i had used tcp filter only. I will try with tcpdump and hostapd.
With hostapd and tcpdump, ofline (what option syntax do you need for the command tcpdump?) is it good?