bat_type
enum bat_type type;
const enum bat_type buf_type)
const enum bat_type buf_type)
const enum bat_type buf_type);
memcpy(power->bat_type, &res->plc, res->length - 2);
power->bat_type[res->length - 2] = '\0';
if (!strncmp(power->bat_type, "Li", 30))
char bat_type[30];