Matrix Portal with requests libaray

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
hcodu
 
Posts: 1
Joined: Wed May 04, 2022 10:42 am

Matrix Portal with requests libaray

Post by hcodu »

Hello all!

I am trying to make a requests object to make advanced web requests, while at the same time using the Matrix Portal libraries. However, when I try to make a new ESP32 object to pass into the requests constructor, I get an "ESP_CS BUSY IN USE" error. I assume this is because the Matrix Portal creates its own ESP32 object when creating. How can I access the already made ESP32 object to then pass into the requests object. Please let me know.

User avatar
danhalbert
 
Posts: 4649
Joined: Tue Aug 08, 2017 12:37 pm

Re: Matrix Portal with requests libaray

Post by danhalbert »

I think it's available as mp.network.requests, where mp is your MatrixPortal object. Note that MatrixPortal may be so cognizant of sharing that object, so I'm not sure whether using it may confuse things or not.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”