How to get plugins of bolt iot device in android studio application ,please tell me the process

i want to create and android app which can control my boltiot device, please give me suggestion . I have bolt iot app but , i want to design and develop app for bolt iot device, in android studio.

Hi @kunalkatkade22,

Bolt Cloud provides Bolt Cloud API https://docs.boltiot.com/. You can trigger API using any language.

For example:

Suppose you created a button in the android application and on click event of a button you can all the Bolt Cloud API.

Check the below code snippet using the OKHttp library of Java.

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("https://cloud.boltiot.com/remote/1cdfabea-306f-413f-a84b-552938aa8c5d/digitalWrite?pin=2&state=LOW&deviceName=BO7488206")
  .method("GET", null)
  .build();
Response response = client.newCall(request).execute();

Do let me know in case you need further assitance.

1 Like

While creating product should I set trigger on the places of min.