I set this up with a Solis inverter and it worked perfectly for a few ours and then failed (I could see the ESP was still receiving the correct data from the smart shunt but it said it was unable to communicate on the CAN bus), so I replaced the MCP2515 board thinking that it may be the fault...
@ChrisG Thank you for your help, I commented out the Pylontec line and double checked the pins and it has been working for now, but I noticed on the serial monitor it still says that it is sending the Pylontec string. How do I make sure it isn't still trying to use the pylon protocol?
I am still having intermittent issues, we managed to catch the failure happening yesterday (screenshots below), it seems to fail and then try to restart but that doesn't work. Then when we go a do a hard reset by physically pushing the button on the ESP it starts working again. Do you have any...