yes i have
@kondruabhay copy your API_KEY from the API section of Bolt Cloud and then execute the API request. Say your API KEY is like 54if-96gg (it would be 32 characters long) and the Device ID is: BOLT12345then write the following command:
https://cloud.boltiot.com/remote/54if-96gg/digitalWrite?pin=0&state=HIGH&deviceName=BOLT12345
You haven’t replaced the api_key and device_id with your credentials. After executing the correct API request do share the output
ok i should copy paste every time when i write a new code but its should be automated right?
No brother the html code which you have wriiten should get the API Key itself. In order to find what is the problem, I was telling you to execute the command on your browser to see what output you are getting.
https://cloud.boltiot.com/remote/54if-96gg/digitalWrite?pin=0&state=HIGH&deviceName=BOLT12345
Do write your credentials in the request. Execute this in browser and then share the screenshot
so in the below line
instead of {{ApiKey}} i should write my Api key write.if not what the actual syntax
for suppose my api key “isdh2423h” then
In your initial html file code, change the script tag to this:
setKey(‘api_key’,‘device_id’)
Replace the API KEY and Device_ID with your credentials
Then save the code and try running the same.
Brother you have done this wrong. You have entered invalid API address and also wrong Device ID.
I am attaching the screenshot of my Device ID:
And you can find the API key inside the API section of the cloud dashboard, copy the API key from there. It is 32 characters long
So I will execute the following command:
https://cloud.boltiot.com/remote/32 bot long API key/digitalWrite?pin=0&state=HIGH&deviceName=BOLT1331603
So replace the API key and device id with your credentials, I have said this a thousand times
Please share the screenshot of the Devices section
So even after running this code, are you still facing the issue?
buddy can u share command again
Brother you have defined the URL as follows:
https://cloud.boltiot.com/remote/54if-96gg/digitalWrite?pin=0&state=HIGH&deviceName=BOLT1331603
Is 54if-96gg your API_KEY and your device is is also wrong, you are just clciking on the example links I am stating, You have to replace them with your module’s details.
After running the correct URL, the response should be:
i generated API key again
@kondruabhay just connect the Bolt WiFi module along with the LED hardware connections and then in the browser write the following request:
https://cloud.boltiot.com/remote/api_key/digitalWrite?pin=0&state=HIGH&deviceName=device_name
Note: Don’t just click on this URL, replace the API_KEY with your actual API KEY from cloud dashboard and also replace the DeviceName with correct Device Name
oh is it!! im actually a newbie soo can u state syntax for checking with our OWN URL
Ok buddy. See my API KEY is:
My device id is:
So I will run the following URL: