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);
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);
Declare your string static in setup
, or make it global.
static String dev_token("123");
mDashBegin(dev_token.c_str());
Very good success. Thx