I Need Guidance on Integrating Bolt IoT with Custom Android App

Hey Bolt IoT wizards! :smiling_face_with_three_hearts:

I am making some headway on a project integrating Bolt IoT with a custom Android app, but I’ve hit a few roadblocks where some expert advice would be golden.

For context, I’ve got my Bolt device up and running, controlling LEDs and reading sensor data like a champ through the Bolt Cloud dashboard. Now, I’m on a mission to build an Android app that lets users control their devices remotely.

Here’s where I’m scratching my head:

  • Please share any tips or tricks on how to best hook Bolt IoT’s API into my Android app? Are there libraries or pre-built tools (SDKs) that can make this easier?
  • How can I make sure the app gets updates from the Bolt device instantly? Thinking WebSockets, Firebase, or maybe something else entirely?
  • What are the best practices to keep communication between the app and device super secure? User data and commands need to be protected!
  • What’s the recommended way to handle user login within the app for connecting to the Bolt device? Should I rely on Bolt Cloud or build it within the app?

I also check this : https://forum.boltiot.com/t/how-to-create-an-android-app-using-python-with-bolt-google-cloud-platform But I have not found any solution. Could anyone share some helpful resources, or code examples you can share would be a huge help! Especially if you’ve tackled a similar project or have Bolt IoT magic in your fingertips.

Thanks in advance

Respected community member :smiling_face_with_three_hearts:

1 Like

You could use KIVY to make a platform independent application using python and then export it to android as an apk, or you could build a web application using flask. Then make API calls to that web app through your android app.

1 Like

Use kotlin for android development and chaqoupy to integrate python so that the boltiot python library can be easily used with your app.

1 Like

Hi @mollylucas89,

Please find the reply to your queries below:

  1. You can refer to the this for the accessing the Bolt APIs API Introduction
  2. There is no SDK available. You can make the HTTP API calls to the above APIs to get interact with the Bolt device using the app
  3. The updates from the API are inrealtime. However, the API has limits based on your cloud account. Here are the Access rules API access rules. Ensure that you don’t exceed the usage quota to avoid the API getting rate limited
  4. For keeping the API secure, you can use HTTPS protocol
  5. You will have to build your own login flow. As you won’t have access to the Bolt Cloud login.

I hope this helps.

1 Like