hii guys
how to connect servo motor to bolt iot module?
oi have already connected with below website and it run succesfully
https://cloud.boltiot.com/remote/api/servoWrite?pin=2&value=135&deviceName=name
but i dont need this
i have to do this in python
plz say the python command to control servo motor
like
for digital write ------ response = mybolt.digitalWrite(‘0’, ‘HIGH’)
then what is for servoWrite
plz its urgent
plz guys
does any one knows??
@haripavanpuvvula1019
We haven’t added it to our python library cause of the fact that servo motor control APIs were developed recently.
You can use the below code to use servoWrite in python
import requests
url = "https://cloud.boltiot.com/remote/{{API_KEY}}/servoWrite"
querystring = {"pin":"{{0}}","value":"{{135}}","deviceName":"{{DEVICE_ID}}"
payload = ""
headers = {
'cache-control': "no-cache",
}
response = requests.request("GET", url, data=payload, headers=headers, params=querystring)
print(response.text)
Please make sure you replace the parameters in {{}} brackets with your relevant data.
what we should write in pay load???
showing it as invalid syntax
its again showing invalid syntax for header too and response
too
my content is not opening plz fix this sir …it helps
@haripavanpuvvula1019 Are you able to access other modules?
i got a solution i am using it in fire fox now and i am able to axcess all my course thanks for your response brother