- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
HCI UART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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