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

Issue with the memoryview #135

Open
Valadimirovich opened this issue Mar 4, 2024 · 3 comments
Open

Issue with the memoryview #135

Valadimirovich opened this issue Mar 4, 2024 · 3 comments

Comments

@Valadimirovich
Copy link

I am not sure if it's related to the use of 1.23 firmware, but it happens during the initial connection after the reset

Traceback (most recent call last):
File "asyncio/core.py", line 1, in run_until_complete
File "", line 448, in outgoing
File "mqtt_as.py", line 797, in publish
File "mqtt_as.py", line 409, in publish
File "mqtt_as.py", line 444, in _publish
File "mqtt_as.py", line 235, in _as_write
TypeError: object with buffer protocol required

@peterhinch
Copy link
Owner

Please can you give me some more detail.

  1. What hardware are you using?
  2. Does the error occur if you run the range.py demo?

@Valadimirovich
Copy link
Author

Thank you for your prompt response

  1. ESP32-S3 with SPIRAM, n8r2
  2. Nope, range.py runs fine

@peterhinch
Copy link
Owner

If range.py runs, publications are occurring successfully, which suggests that the firmware is OK.

The topic and msg args should be bytes or bytearray instances: the traceback suggests that something else is being passed.

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

No branches or pull requests

2 participants