WorkerThread method to write characteristic