If one passes an array of mixed values, including strings, to a Write function in the BLE extension, the extension does not attempt to coerce it to a number and throws an exception in an attempt to cast String to Integer. We should instead test whether the item is a String and then use the appropriate parse method to convert it to a number. If that fails, then we can signal an error.
If one passes an array of mixed values, including strings, to a Write function in the BLE extension, the extension does not attempt to coerce it to a number and throws an exception in an attempt to cast String to Integer. We should instead test whether the item is a String and then use the appropriate parse method to convert it to a number. If that fails, then we can signal an error.