我正在尝试UCHAR btMACAddress[INTEL_MAC_ADDR_LENGTH]
用 C++ 打印。
cout<<"adapter MAC address="<<padapter->btMACAddress<<endl;
上面显示 NULL
在 ci 中可以打印。
printf("adapter macaddress %02x:%02x:%02x:%02x:%02x:%02x \n",
pAdapter->adapter[0].btMACAddress[0],
pAdapter->adapter[0].btMACAddress[1],
pAdapter->adapter[0].btMACAddress[2],
pAdapter->adapter[0].btMACAddress[3],
pAdapter->adapter[0].btMACAddress[4],
pAdapter->adapter[0].btMACAddress[5]);