Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle ESP32SPI Socket.send(), which does not return a byte count #235

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

dhalbert
Copy link
Contributor

@dhalbert dhalbert commented Jan 5, 2025

#231 assumed Socket.send() was going to return an int, as it does in CPython. The ESP32SPI version does not ☹️ . Thanks @baldengineer and @axelmagnus for testing.

@dhalbert dhalbert requested a review from a team January 5, 2025 20:20
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@dhalbert dhalbert merged commit a15e711 into adafruit:main Jan 5, 2025
1 check passed
@dhalbert dhalbert deleted the socket-send-non-int branch January 5, 2025 20:25
@dhalbert
Copy link
Contributor Author

dhalbert commented Jan 5, 2025

Probably it would also be helpful to make ESP32SPI more compliant with the CPython API, but the ESP32SPI library is frozen in to several boards, so this PR is a quicker, more robust fix.

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

connect() fails with esp32spi (pyportal): TypeError: unsupported types for __add__: 'int', 'NoneType'
2 participants