FAIMS-694: fixed writing bluetooth messages