Servo motor connection

hii guys
how to connect servo motor to bolt iot module?

oi have already connected with below website and it run succesfully

but i dont need this
i have to do this in python
plz say the python command to control servo motor
for digital write ------ response = mybolt.digitalWrite(‘0’, ‘HIGH’)
then what is for servoWrite
plz its urgent

plz guys
does any one knows??


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 = "{{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)


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

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