Digital write error python

simple problem

My code digitalwrite(“1”,“HIGH”)
Response {“value”: “Command timed out”, “success”: 0}

any solutions…

I think it should be digitalWrite(‘0’, ‘HIGH’); where ‘0’ is your output pin number

It is time out error which is related to network issues .
There are following fixes:

  1. Check for internet connection and it 's speed.
    run this on terminal (u can use different url too…)
ping google.com

2)Check if you are not crossing api calling threshold .

Hi @snahmed1309,
This error may happen if your internet connection is not stable. Please try using an alternative network.