Giter VIP home page Giter VIP logo

Comments (8)

bzbarsky-apple avatar bzbarsky-apple commented on June 2, 2024

@aryanarayantiwari This is literally something we have automated tests for, and it works fine in those.

If it's not working for you, and you want help, you probably need to provide more information about what exactly you are doing (calling what APIs, with what arguments). And possibly logs, but let's start with the exact API calls you are making.

from connectedhomeip.

aryanarayantiwari avatar aryanarayantiwari commented on June 2, 2024

@bzbarsky-apple I am using openCommissioningWindow(withDiscriminator:duration:queue:completion:) api and the arguments that are passed are:-
Discriminator: 3840
duration: 30
queue: .main

from connectedhomeip.

bzbarsky-apple avatar bzbarsky-apple commented on June 2, 2024

Well, 30 is not a valid value for duration. That's why you get "Malformed Values in Cluster".

I wish the documentation you linked to included the docs on that function. See

/**
* Open a commissioning window on the device.
*
* On success, completion will be called on queue with the MTRSetupPayload that
* can be used to commission the device.
*
* @param setupPasscode The setup passcode to use for the commissioning window.
* See MTRSetupPayload's generateRandomSetupPasscode for
* generating a valid random passcode.
* @param discriminator The discriminator to use for the commissionable
* advertisement.
* @param duration Duration, in seconds, during which the commissioning
* window will be open.
*/

"duration" is documented as being seconds. Per spec, valid values are between 3 and 15 minutes, so 180-900 seconds.

from connectedhomeip.

aryanarayantiwari avatar aryanarayantiwari commented on June 2, 2024

@bzbarsky-apple Yes, that was the root cause of my problem, Thanks!. I was wondering if it's documented that the commission window supports duration between 3 to 15 minutes.

from connectedhomeip.

bzbarsky-apple avatar bzbarsky-apple commented on June 2, 2024

I was wondering if it's documented that the commission window supports duration between 3 to 15 minutes.

It's in the published Matter specification, no? Just like all sorts of other constraints on various arguments.

But yes, in terms of API documentation there are some lacks here.

from connectedhomeip.

aryanarayantiwari avatar aryanarayantiwari commented on June 2, 2024

I was wondering if it's documented that the commission window supports duration between 3 to 15 minutes.

It's in the published Matter specification, no? Just like all sorts of other constraints on various arguments.

But yes, in terms of API documentation there are some lacks here.

Yes It's mentioned in the Announcement Section(5.4.2.3) of Matter Specification at page 239. Thanks for the help @bzbarsky-apple

from connectedhomeip.

aryanarayantiwari avatar aryanarayantiwari commented on June 2, 2024

Hi! @bzbarsky-apple . Could you please guide me onto how to discover what type of device I'm pairing with, meaning what kind of clusters does it support I would appreciate it if you would help.

from connectedhomeip.

bzbarsky-apple avatar bzbarsky-apple commented on June 2, 2024

You could read ServerList from the Descriptor cluster on all the endpoints, right?

from connectedhomeip.

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.