corneliusmunz / legoino

Arduino Library for controlling Powered UP and Boost controllers
MIT License
257 stars 34 forks source link

HubEmulation crashes when overloaded by Brickcontroller2 #76

Open aspyra opened 1 year ago

aspyra commented 1 year ago

Hi, let me start by saying I'm not sure if this is the library's, the example's or BC2's issue. It seems that BC2 does not cap the packet rate sent to PU or C+ hubs. When using sticks or triggers, it's possible to overload the ESP32. At first, there is a noticeable lag, and then the ESP32 locks up; there is no crash message, it does not reset by itself. I removed the code controlling the IR and it was still possible to lock it up just by sending packets. Can this be prevented by the library?