Send text via bluetooth

Returns me the following error:

invalid conversion from 'char*' to 'const uint8_t* {aka const unsigned char*}' [-fpermissive]

So I changed to:

  SerialBT.write((uint8_t *)buf, a.length());

But it still didn't work, the message is not sent...