Simulator sending wrong argument type for Lock Codes setCode()


(Mike M.) #1

The capabilities document specifies the following signature: setCode(number, string)

However, the simulator is sending a number:

if (!(code instanceof String && code.isInteger())) {
    log.error("'$code' must be a string composed of numbers.")
    return
}

Using the simulator fields:

setCode 4 9235

11:19:04 AM: error '9235.0' must be a string composed of numbers.

setCode 4 09235

11:21:04 AM: error '9235.0' must be a string composed of numbers.