I have followed this tutorial and configured revpipyload.conf as the tutorial prescribes. However, when I try to test using $ mosquitto_sub -t "#" -v I don't see any MQTT activity at all. I have checked the "export" box on all the variables I want to send over MQTT, and I've confirmed using piTest that there is data there, but it doesn't get through.
If I just send some random MQTT data from Node-Red to the local mosquitto broker, I can see that data in the terminal, which indicates that the broker works and mosquitto_sub is receiving.
There are two more things I would've done to troubleshoot, but I honestly can't figure out how …
1) I'd connect a pushbutton to RevPi Connect's onboard input and see if I can get that data through over MQTT – but I don't know where in the process image to find that input, and despite honest attempts to search I just haven't found any information on this
2) I'd try to turn on an onboard LED from Node-Red, but I don't know what MQTT message to send. I've found information on what bits to set using piTest, but from the RevPiPyLoad tutorial it seems it's done differently there. I've tried sending a boolean true to revpi/set/led1, but that's not doing anything.
Just to try something completely different I also enabled Node-RED RevPi Nodes Server, but I get an "unsupported server" error when connecting to localhost:8000.
Any clues?
EDIT: I found the RevPiPyLoad logs, there are a lot of these errors:
Code: Select all
2022-05-04 11:48:26 [ERROR ] 'Connect' object has no attribute '__evt_wdtoggle'
2022-05-04 11:48:26 [ERROR ] plc file does not exists /var/lib/revpipyload/program.py
2022-05-04 11:51:23 [ERROR ] 'Connect' object has no attribute '__evt_wdtoggle'
2022-05-04 11:51:23 [ERROR ] plc file does not exists /var/lib/revpipyload/program.py
2022-05-04 12:31:20 [ERROR ] 'Connect' object has no attribute '__evt_wdtoggle'
2022-05-04 12:31:20 [ERROR ] plc file does not exists /var/lib/revpipyload/program.py
2022-05-04 14:03:51 [ERROR ] 'Connect' object has no attribute '__evt_wdtoggle'
2022-05-04 14:03:51 [ERROR ] plc file does not exists /var/lib/revpipyload/program.py