I’m a little bit confused about the ‘PermitJoin’ message. I’ve already managed to get it working, that is, I sent this message and got some events back letting me know that there was a new device which I could then use. So that seemed ok.
I just don’t understand the purpose of the ‘Device Record ID’ parameter. What value should be used for this? I previously used one of the already existing id’s (or 0) which worked. But what does it mean? Why do you have to specify the id of a device to change the join mode?
Sorry I completely missed this post. Here’s the answer just in case:
The purpose of the Device ID Parameter in the Permit Join API is to identify which interface you want to enable the permit join for.
For example: Lets say you have 1 Zigbee USB-CID and 1 Insteon PLM attached to your RaspberryPi. You can send the Permit Join with the ID of the Insteon PLM and only the Insteon PLM will be in open join mode (start linking mode). The Zigbee USB-CID will not be affected.