added characteristic profile write and process data callbacks