This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Composition data error while using interactive pyaci

I'm using nrf52840 DK board with modified program of light switch example from sdk 2.1.1. While provisioning with interactive pyaci i'm giving provision address maually to provision the device.The provision process gets successful but while calling cc. composition_data_get() i receive an error as ERROR_INVALID_DATA. Can you please tell me why composition data is not received?

In [6]: p.provision(name="Light bulb",address=16)

In [7]:INFO - COM5: Success
-INFO - COM5: Provision: {'context': 0}
- INFO - COM5: Link established
- INFO - COM5: Received capabilities
- INFO - COM5: Number of elements: 3
- INFO - COM5: OobUse: {'context': 0}
 - INFO - COM5: ECDH request received
 - INFO - COM5: EcdhSecret: {'context': 0}
 - INFO - COM5: Provisioning complete
- INFO - COM5: Address(es): 0x10-0x12
- INFO - COM5: Device key: 7f29bfbb0477bd05595f95427c8db534
- INFO - COM5: Network key: 18eed9c2a56add85049ffc3c59ad0e12
- INFO - COM5: Adding device key to subnet 0
- INFO - COM5: Adding publication address of root element
- INFO - COM5: DevkeyAdd: {'devkey_handle': 8}
INFO - COM5: AddrPublicationAdd: {'address_handle': 0}
INFO - COM5: Provisioning link closed
In [7]: cc = ConfigurationClient(db)

In [8]: device.model_add(cc)

In [9]: cc.publish_set(8, 0)

In [10]: cc.composition_data_get()

- ERROR - COM5: None: ERROR_INVALID_DATA

Related