I just noticed that you created version 1.5: I tried to uninstall version 1.4, with which I was working with and made the changes for, and install the new version with pip (with no cache option), but it is still installing version 1.4.
Here I tried to repropose the same changes that I did for version 1.4, but at this point, the changes for version 1.5 are not tested.
The idea is that after the connection, the user is able to change the encoding by calling client.set_encoding('encoding-type'); I thought about including the ability to change encoding only once when the connection is created, but I envisioned situations where the user doesn't know which kind of encoding is used by the screen, and gets it from a custom variable after the connection to the screen is set.
See https://github.com/yozik04/nextion/issues/4
I just noticed that you created version 1.5: I tried to uninstall version 1.4, with which I was working with and made the changes for, and install the new version with pip (with no cache option), but it is still installing version 1.4. Here I tried to repropose the same changes that I did for version 1.4, but at this point, the changes for version 1.5 are not tested.
The idea is that after the connection, the user is able to change the encoding by calling client.set_encoding('encoding-type'); I thought about including the ability to change encoding only once when the connection is created, but I envisioned situations where the user doesn't know which kind of encoding is used by the screen, and gets it from a custom variable after the connection to the screen is set.