Giter Site home page Giter Site logo

P115 changing WI-FI about tapo HOT 5 OPEN

DrAssExplosion avatar DrAssExplosion commented on May 24, 2024
P115 changing WI-FI

from tapo.

Comments (5)

mihai-dinculescu avatar mihai-dinculescu commented on May 24, 2024

Have you tried calling .refresh_session()?

from tapo.

DrAssExplosion avatar DrAssExplosion commented on May 24, 2024

I'm sorry, the translator accidentally translated "Tarot", I wanted to write an application "Tapo"

I'm afraid to call .refresh_session() will not work because first we create a device let my device = ApiClient::new(tapo_username, tapo_password).p110(ip_address).await?; and then device.refresh_session().await;

But the call occurs along the following chain .p110(ip_address) -> login(ip_address) -> KlapProtocol.login() -> handshake() -> handshake1(), and in handshake1 the incorrect "local_hash" and "server_hash" are generated, .refresh_session() also causes handshake()

In general, the idea is to assemble a *.exe file that will scan the network, connect to the device's WI-FI and connect the device itself to the home network (what the Tapo mobile app does)
Only without the need for the user to install this application

from tapo.

mihai-dinculescu avatar mihai-dinculescu commented on May 24, 2024

Ah, I see.
So you basically want to be able to set up the wifi of a new device or a device that's been reset programmatically?

from tapo.

DrAssExplosion avatar DrAssExplosion commented on May 24, 2024

I think it would be nice in both cases (if possible)
For example, if you take a new outlet P115, connect it using the "Tapo", then reset it by pressing the button on the outlet itself (+- 5 sec.) then, when reconnecting, "Tapo" will detect some part of the old settings and offer to use them
Therefore, it is not clear whether these old settings are used when reconnecting or not

from tapo.

mihai-dinculescu avatar mihai-dinculescu commented on May 24, 2024

Yes, it sounds useful to add, indeed.
I'm happy to talk over contributions if someone is willing to add support for this.

from tapo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.