I am trying to add an application key in the QMesh Config Model submenu following 80-Y9381-4 using the ConfigAddAppKey command
15 0 33 0 0 1234567890ABCDEF1234567890ABCDEF
but the console returns res=4 which in the QAPI is an invalid network key index.
Is the first argument not supposed to refer to the network index used in the QMesh submenu using the AddNetwork command?
ConfigAddAppKey and ConfigBindAppKey have to be run from the provisioner targeted to the node.
Example:
QMesh InitializeMesh
QMesh CreateDeviceInstance 0 0 0
QMesh AddNetwork 0 0 88d7364cd842ad18c17c2b820c848899
QMesh AddApplicationKey 0 0 0 5516D1509884B533248541792B888F9a
QMesh AddApplicationKey 0 0 1 6688D1509884B533248541792B877F88
QMesh UpdateModelAppBindList 0 0x465 0 0x1001 0 1
QMesh UpdateModelAppBindList 0 0x465 1 0x1309 0 1