As an aside, that capability within setCode is not currently working in the Z-Wave Edge driver. This is a known issue some of us have been trying to get resolved for quite some time.
As a workaround, instead of using the setCode(codeSlot, codePIN, codeName) capability you can use nameSlot(codeSlot, codeName) after setting the code to establish the name.