虾哥,好像还是通信不了,我在server端打印一直出现的是GATT_WRITE_NOT_PERMIT,好像是还要绑定uuid,但是一直出现错误Error in aci_gatt_disc_char_by_uuid() for TX characteristic: 0x0046,用的函数是aci_gatt_disc_char_by_uuid
const uint8_t charUuid128_TX[16] = {0x00,0x00,0xee,0x01,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0x80,0x5f,0x9b,0x34,0xfb};
Osal_MemCpy(&UUID_Tx.UUID_16, charUuid128_TX, 16);
ret = aci_gatt_disc_char_by_uuid(discovery[0].connection_handle, 0x0001, 0xFFFF,UUID_TYPE_128,&UUID_Tx);
if (ret != 0)
printf ("Error in aci_gatt_disc_char_by_uuid() for TX characteristic: 0x%04x\r\n", ret);
else
printf ("aci_gatt_disc_char_by_uuid() for TX characteristic --> SUCCESS\r\n");
APP_FLAG_SET(START_READ_TX_CHAR_HANDLE);
本帖最后由 fdding 于 2019-1-22 18:08 编辑