想要上面这个效果,同名字的可以显示多条,而我现在写的同名字的只能显示一条。我尝试去修改以下代码,但不起作用,不知道是不是改的地方不对,还是咋回事? static void appm_build_adv_data(uint16_t max_length, uint16_t *p_length, uint8_t *p_buf) { *************** uint8_t localMac[8]={0}; localMac[0] = 0x07; localMac[1] = APP_ADV_DATATYPE_LE_BLUETOOTH_DEVICE_ADDRESS; memcpy(localMac+2,addr_test,6); memcpy(p_buf, localMac, sizeof(localMac)); *p_length += sizeof(localMac); p_buf += sizeof(localMac); *********** } |