Android Things 与智能手机上的客户端应用程序集成
Android things integration with client app on smartphone
我开发了一个基于 Android 事物的设备,但我在与智能手机应用程序集成时遇到了问题,因为我想通过智能手机控制它。
也许有人已经解决了这个问题,有什么更好的整合方式吗?
可能用Firebase Realtime DB或者push notifications,因为这个设备的后端写会过度工程化?
您可以通过几种不同的方式进行操作:
- Firebase
- NanoHttpd on Android Things + Retrofit on the client
- 附近
您可以在第 7 章下查看此存储库中的一些示例:https://github.com/PacktPublishing/Android-Things-Quick-Start-Guide
本书的那一章详细介绍了 3 个选项,并继续解释示例代码。
我开发了一个基于 Android 事物的设备,但我在与智能手机应用程序集成时遇到了问题,因为我想通过智能手机控制它。 也许有人已经解决了这个问题,有什么更好的整合方式吗? 可能用Firebase Realtime DB或者push notifications,因为这个设备的后端写会过度工程化?
您可以通过几种不同的方式进行操作:
- Firebase
- NanoHttpd on Android Things + Retrofit on the client
- 附近
您可以在第 7 章下查看此存储库中的一些示例:https://github.com/PacktPublishing/Android-Things-Quick-Start-Guide
本书的那一章详细介绍了 3 个选项,并继续解释示例代码。