change function writeDataBT() visibility