Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. urequest.py
    Log in to post

    • N

      Failure on urequests library OSError: no available NIC
      Issues & Bugs • oserror urequests urequest.py get requests • • nervencid  

      2
      0
      Votes
      2
      Posts
      98
      Views

      M

      Hi, Did you check whether your WiPy is connected to wifi? If WiPy is not connected to wifi, you can receive oserror. After being sure that your WiPy connected to wifi, please try your code. Best,
    • M

      Gpy + Pysense - urequests AttributeError: 'module' object has no attribute 'get'
      GPy • gpy urequests http get urequest.py psense • • madeira199  

      7
      0
      Votes
      7
      Posts
      1963
      Views

      M

      @seb Everything work fine, after sync again! Thank you very much
    • J

      HTTP Post with urequests OSError: -1
      Comments & Feedback • oserror http post json urequest.py • • jimpower  

      8
      0
      Votes
      8
      Posts
      2447
      Views

      J

      @livius Thanks for your help, the gc.collect() has worked and the loop has remained stable for a few hours now.
    • D

      LoPy HTTP POST request: OSError!
      LoPy • lopy oserror ssl http post urequest.py • • Devang Sharma  

      10
      0
      Votes
      10
      Posts
      2917
      Views

      D

      @RobTuDelft Try closing the socket after each request you make as @this-wiederkehr suggested here. It worked for me.
    • S

      Send data requests http post. **SOLVED**
      LoPy • http post post urequest.py request.py ubidots • • scg94  

      40
      1
      Votes
      40
      Posts
      22267
      Views

      W

      @wolli01 Hier mein Code import urequests userdata = {"p1": "Wohnzimmer", "p2": "24.12.2018", "p3": "23.97"} url = 'https://Homepage.de/live1.php' res = urequests.post(url, headers={"Content-Type": "application/json", "Accept": "application/json"}, data= str(userdata)) res.close() auf den PHP Server: <?php //Sensor1 $p1 = $_GET["p1"]; $p2 = $_GET["p2"]; $p3 = $_GET["p3"]; $inhalt = array($p1, $p2, $p3); // Speichern der Datei $eintrag = implode(";", $inhalt); file_put_contents("sensor1.txt", $eintrag); ?>
    • 1 / 1