Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DBus interface and properties. #69

Merged
merged 1 commit into from
Nov 20, 2017
Merged

Added DBus interface and properties. #69

merged 1 commit into from
Nov 20, 2017

Conversation

jdrescher2006
Copy link
Contributor

Added DBus interface for sending data to watch app with callback function. Added DBus properties for IsConnected, Name and Address in order to access them via getProperty from a QML file.

…tion. Exposed IsConnected, Name and Address as DBus property.
@abranson abranson merged commit 146ca3c into abranson:master Nov 20, 2017
@abranson
Copy link
Owner

Thanks, do you think that's all you need, or will there be more coming? I think it would be best to hold the release of this until you're ready on your side.

@jdrescher2006
Copy link
Contributor Author

The sport app on the watch has a pause/play button. Is it somehow possible to get the button event into my SFOS app? I thought the send method with callbacks in appsmsgmanager.cpp might do the trick. But unfortunately it does not work at all data is not displayed and callback is undefined. Do you have an idea for this?

@abranson
Copy link
Owner

Usually the watchapps communicate directly with their javascript portions on the phone, but as this is a built-in app then there must be some special signal coming back like with the others. Does the log show anything when you press that button?

@jdrescher2006
Copy link
Contributor Author

I think this looks quite good. With journalctl -f -l -a if the button is pressed, I get: AppMsgManager::mapAppKeys:203 - Unknown appKey value 4 for app with GUID QUuid("{4dab81a6-d2fc-458a-992c-7a1f3b96a970}")

@jdrescher2006
Copy link
Contributor Author

I found in appsmsgmanager.cpp the lines qWarning() << "Unknown appKey value" << it.key() << "for app with GUID" << uuid;. Maybe I can emit a signal there with the app ID and the key pressed. The signal must be exposed to DBus and an SFOS app can wait for events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants