-
Notifications
You must be signed in to change notification settings - Fork 15
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
TypeError: can't convert LppData to int #104
Comments
Dear Sebastian, we recognized your recent activity on the codebase, all accumulating into the most recent version 2.3.0, released the other day. Kudos and thanks for your excellent work! We also would like to upgrade to the most recent release and just created a corresponding note to track this, see hiveeyes/terkin-datalogger#103. As you might remember @thiasB and me from earlier visits to this repository, we are especially looking at support for MicroPython. Apart from what @scopelemanuele is reporting here, we also have to support older versions of MicroPython, because Pycom's fork is not en par with MicroPython v1.16 yet. So, I am humbly asking if you believe the issue reported here might still be a problem for us? With kind regards, |
Hi all, thanks @scopelemanuele for testing and reporting this issue. I assume the problem here is that MicroPython cannot handle the Anyway, I need to verify this and then check options on how to solve this. Also, I should add specific MicroPython testing to avoid such issues in the future. So again, thx for reporting! |
@amotl could you also test this against your Pycom fork of MicroPython? |
okay, I tested and found that it actually is the usage |
See #105 for a fix, I tested with the Unix port of MicroPython on MacOS. With that I was able to reproduce the bug and also test my proposed fix. |
Please note important change: in MicroPython you need to use |
also note discussion here micropython/micropython#3158 |
Dear Sebastian, thank you so much for your quick reply on this issue, for submitting #105 already and for referencing related resources/discussions on the MicroPython issue tracker. I also would like to add references to adafruit/circuitpython#1763 and adafruit/circuitpython#2220 by @tannewt in this context. As I am currently traveling, it might need some time for me to be able to test your patch on real hardware. From what I read about your rationale, everything is completely fine from my perspective. I also believe testing your fix on the Unix port of MicroPython is completely sufficient. So, I believe it would not hurt to integrate this patch and cut a new release. With kind regards, |
I don't know for sure, but maybe @thiasB has some hardware around to give this a spin. However, he would have to test it by using a minimal example, because the other parts of the Terkin code did not yet integrate the changes to make it compatible with the most recent version of PyCayenneLPP. |
new release 2.4.0 just up, check it out. |
Thanks Sebastian! I have been distracted by other things, so I haven't been able to come back to this yet. |
Micropython Version:
MicroPython v1.16 on 2021-08-23; ESP32 module with ESP32
Compiled from repository and Lpp embedded in firmware
Code:
Returned error:
The text was updated successfully, but these errors were encountered: