Mdashbegin API Question

#1

How to put String into the parameter by String variable?
example: mDashBegin(DEVICE_PASSWORD);

Fail to connection -
String str =“12345678”;
const char *pass =str.c_str();
mDashBegin(pass);

#2

Declare your string static in setup, or make it global.

  static String dev_token("123");
  mDashBegin(dev_token.c_str());
#3

Very good success. Thx