Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add uasyncio version of urequests (with patch) #550

Closed
@GM-Script-Writer-62850

Description

@GM-Script-Writer-62850

Patch: urequests.zip
Attachment includes both before/after scripts of the current version of urequests as well as a diff.patch file
This also includes a copy of this with the patch applied for issue #546

Using this test code shows my uasyncio urequests patch works

import uasyncio_urequests as urequests
import uasyncio

# [insert code to connect to network here]

async def test():
    while True:
        print("testing")
        await uasyncio.sleep(1)
uasyncio.create_task(test())
async def main():
    while True:
        r=await urequests.get("http://10.0.0.75/temp.json")
        print(r.status_code,r.content)
        #await uasyncio.sleep(3)
uasyncio.run(main())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions