Hello everyone,
I'm asking this question here in the community, because people here know a lot about node-red, but also have a lot of experience with different hardware.
I need advice on a way to achieve what I have planned. Luckily there are so many options out there that I just don't know what will get me to the goal.
Ok now to the essentials.
I work mostly with Siemens CPU S7. So far I used node-red for visualization through the dashboard and small manipulation of values from the PLC. Additionally I collected information from other devices and passed it to the PLC. For this, nore-red has been wonderful and I am very satisfied how well, with the help of the community here in the forum, everything has worked out.
Currently I am learning flutter and dart for mobile app development. And I want to be able to control the PLC with the app I'm developing. The app should have user management so that multiple users can control and monitor the PLC with their own interface.
The thinking for this was to use node-red as the backend and receive input from the app and then send it on to the PLC. The same with the incoming values. The PLC sends the values via node-red to the app.
Which component do I need to realize this? What do I need for this?
My considerations are as follows:
- Creation of a rest API which is then accessed by the app and node-red?
- Communication to node-red via MQTT, using raspi as broker?
- Using node-red api, is that possible?
- http requests. not sure what tools i need for this.
Can someone maybe give me a quick guide on what communication path I can take and what tools I need for this?
Due to the fact that there are so many different things, it would be a waste for me to learn anything only to find out later that it is not suitable for my project.