Update data over uart by ble request

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

cross mob
Anonymous
Not applicable

Hey,

i wrote a app to get informations from my BCM92073X board.

The board is connected over uart with a nother device.

I want create a read-button in my app to update the information.

If i push the button in my app the board should ask the other decive over uart for the current information. And save the answer in my characteristic. Is there a possibility to solve it with a "eventhandler" or a "interrupt function"?

At the moment i solved it with the SW1. It sends a request e.g. amperage over uart and save the answer on charcteristic.

In principle it works. But i want solve it with buttons in my app.

best regards

Asper

0 Likes
1 Solution
Anonymous
Not applicable

It's possible I think.

Your app writes something into another characteristic to issue a request.

It can be detected by write_handler() and 2073X sends the request to another device.

After getting current status through uart, the app can get the status by notification.

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

It's possible I think.

Your app writes something into another characteristic to issue a request.

It can be detected by write_handler() and 2073X sends the request to another device.

After getting current status through uart, the app can get the status by notification.

0 Likes
Anonymous
Not applicable

Oh no . The variant has also been suggested to me a colleague.

But I thought that needs to go easier.....

I have 33 services and each service have 15 characteristics.

5 characteristics need a "update" button.

0 Likes
Anonymous
Not applicable

Do these 5 characteristics need to be updated independently?

If "update" doesn't happen so often, you can get all 5 status through uart and update these characteristics at once.

0 Likes
Anonymous
Not applicable

independently, yes to reduce the traffic.

I think i try it with one additional characteristic and write different values ​​to see which characteristic needs an update.


Thanks

0 Likes