Skip to content

Add application key to ConfigClientModel raise futures.TimeoutError() on await client.add_app_key #131

@ddovnar

Description

@ddovnar

Hi! I've got an error, when I try add application key to the ConfigClient model. How can I fix this? Thanks

Sampe of python code:

async def configure(self):
   53         client = self.elements[0][ConfigClient]
   54 
   55         print("Configure start")
   56 
   57         status = await client.add_app_key(
   58             self.addr, net_index=0,
   59             app_key_index=0,
   60             net_key_index=0,
   61             app_key=self.app_keys[0]
   62         )
   63 
   64         print("Add app key done")
   65 
   66         assert status == StatusCode.SUCCESS, \
   67             'Cannot add application key: %s' % status

Error trace:

addr= 1
attach invoke before
{}
Configure start
Traceback (most recent call last):
  File "blemesh.py", line 124, in <module>
    main()
  File "blemesh.py", line 120, in main
    loop.run_until_complete(app.run(addr))
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "blemesh.py", line 88, in run
    await self.configure()
  File "blemesh.py", line 61, in configure
    app_key=self.app_keys[0]
  File "/usr/local/lib/python3.7/dist-packages/bluetooth_mesh/models/models.py", line 446, in add_app_key
    status = await self.query(request, status)
  File "/usr/local/lib/python3.7/dist-packages/bluetooth_mesh/models/base.py", line 389, in query
    await asyncio.wait_for(status, timeout=timeout)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 423, in wait_for
    raise futures.TimeoutError()
concurrent.futures._base.TimeoutError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions