Hi, so I'm having issues receiving data through the Serial1 from another Arduino since I'm using a matrix display with the RGBmatrixPanel library which has interrupts that pause the reading of Serial1, therefore giving me non complete data.
I've tried many things such as making my own interrupt for reading the serial but I'm not quite sure how to give it highest priority. I've also quickly tried using I2C with Wire.h but no luck.
According to this, the serial has its own interrupt but still seems to be interrupted by the matrix library.
The body I'm sending is this (just a testing example in JSON):
{"time":{"year":2023,"month":6,"day":13,"hour":18,"minute":26,"second":22},"trains":[{"name":"Boissy-Saint-Léger","time":"20230613T182950","lateness":0},{"name":"Boissy-Saint-Léger","time":"20230613T183740","lateness":0},{"name":"Boissy-Saint-Léger","time":"20230613T184220","lateness":0}]}
and I'm receiving this:
{"tme":{year":023,"onth":,"day:13,"hur":1,"minte":26"secod":22}5,aes"}"me:issaitée"tm:"0613370"ltss:,{n":Bss-nt-ge"tie20303182"atne"0
I know its quite long and there's quite a bit of information but I want to make sure I know what is what.
I'm using an Arduino MEGA2560 R3
Would someone know how to approach this ?