公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YaTr_3516311
Level 5
Level 5
25 sign-ins First solution authored 100 replies posted

Hi,

pastedImage_0.png

定义了数据接收的大小是255,然后与hello_sensor建立链接,hello_sensor发送的数据改成了"HelloHelloHelloHelloHelloHello 0"(数据长度大于20)

建立链接的时候,hello_sensor按键会发送"HelloHelloHelloHelloHelloHello 0"的数据,但我发现我这边只能收到20长度的数据。 请问什么地方会影响这个收数据的长度?

0 点赞
1 解答
Owen_Zhang123
Moderator
Moderator
Moderator
5 questions asked 500 solutions authored 250 sign-ins

需要在client端调用下面的API配置MTU size,我这边测试可以正常配置的。

wiced_bt_gatt_status_t wiced_bt_gatt_configure_mtu (uint16_t conn_id, uint16_t mtu);

在原帖中查看解决方案

0 点赞
10 回复数