This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Server发送数据给Client之 Simpleprofile_char4修改



在simpleperpheral与center连接中,我通过往char4的handle+1写入1来使能通知,一旦往char4写入值,就会在center中触发相应的事件,

但是例程只能发送一个字符,最大是可以发送20个的。所以我将char4更改成一个数组,

  // Characteristic 4 configuration                    只有这个配置的没有更改,其他的都按照char5来进行修改了。

      {

        { ATT_BT_UUID_SIZE, clientCharCfgUUID },

        GATT_PERMIT_READ | GATT_PERMIT_WRITE,

        0,

        (uint8 *)simpleProfileChar4Config

      },

问题是:

在center中,可以收到通知,handle也正确,但是 len却只有1个字符,那value那边都不是正确的数据了。

不知道是不是我改的地方错了。还是是什么原因呢?