event.errorCode Type Number Event onConnectionStateChange See also onConnectionStateChange bluetooth.* Overview Unique error code, present when event.isError is true, nil otherwise.