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

New code on line 75 for p1meter_sym,py #5

Open
heyudude opened this issue Aug 18, 2023 · 3 comments
Open

New code on line 75 for p1meter_sym,py #5

heyudude opened this issue Aug 18, 2023 · 3 comments

Comments

@heyudude
Copy link

Thanks for the nice code: soldering as we speak

On line 75 in p1meter_sym,py

I changed the code to
buf = bytearray(msg, 'utf8')

So an error was solved, not sure if it was introduced with a newer version (1.20) of micropython.

@Josverl
Copy link
Owner

Josverl commented Aug 19, 2023

Thanks,

Mine is still running v1.14 Stable, but I guess it is time to update 👍

@heyudude
Copy link
Author

One question on the wiring:
I have a perfect Wifi connection and working device when used via USB
When I connect my P1 it does not connect to Wifi, no error messages in the console.

Strange, any clue what this could be? Wiring I presume, I use a physical P1 splitter, straight cable to the ESP32

Josverl added a commit that referenced this issue Jan 12, 2024
use utf-8 as pointed out in #5
@Josverl
Copy link
Owner

Josverl commented Jan 12, 2024

Finally got around to adding your patch.
For wifi connection the main thing to check is the SSID and password, it should connect no matter what.
The only thing I remember is that at one point I had used one of the strapping pins to connect to the P1 port, and that kept the device from starting.

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