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

Smart Bluetooth

Anonymous
Not applicable

I have two situationals.

1.Hello_sensor(Smart Sensor Tag), Hello_client(peerapps-LeHelloClient,Android)

2.Hello_sensor(Smart Sensor Tag), Hello_client(Tag3 board)

I can register notification in the LeHelloClient,and I push the botton on the Smart Sensor Tag.

The Smart Sensor Tag will send notification or indication to the LeHelloClient.

But I use the Tag3 board to connect Hello_sensor,and I push the botton on the Smart Sensor Tag.

The hello_sensor run botton and send message callback function,and the tag3 didn't receive notification or indication.

So I use LeHelloClient app to register notification in Smart Sensor Tag,and disconnect it.

I use tag3 to connect hello_sensor after LeHelloClient disconnect Hello_sensor,and push the botton on the Smart Sensor Tag.

Then the tag3 can receive notification or indication.

I think the problem that I didn't enable notification on the hello_sensor.

How can I send command to enable notification or indication in hello_client?

0 Likes
1 Solution
Anonymous
Not applicable

Hi boont,

I add the code in botton callback function,and the hello_client will send command to Hello_sensor.

bleprofile_sendWriteReq(HANDLE_HELLO_SENSOR_CONFIGURATION, (UINT8 *)&u8, 1);

And I cange HANDLE_HELLO_SENSOR_CONFIGURATION to HANDLE_HELLO_SENSOR_CLIENT_CONFIGURATION_DESCRIPTOR.

It wrok fine.Thank you for your help.

View solution in original post

0 Likes
2 Replies