frangoteam / FUXA

Web-based Process Visualization (SCADA/HMI/Dashboard) software
https://frangoteam.org
MIT License
2.49k stars 741 forks source link

[FEATURE] Add a tcp port to receive device data that device proactive send to fuxa #1252

Open YUHAI0 opened 1 week ago

YUHAI0 commented 1 week ago

I am not sure if fuxa now can receive data that device send to or not, I think this feature could be a choice to connect to device and get the data.

unocelli commented 5 days ago

Hi, can you explain better what you mean.

rvbatista commented 5 days ago

Maybe a weight balance?

YUHAI0 commented 3 days ago

My thought is like this, fuxa have some api for example http rest api, then when device send data to this api, and in the fuxa view, the bind control can change it's value when device pushed data to fuxa.

mauroalexandre commented 3 days ago

My thought is like this, fuxa have some api for example http rest api, that device send device to this api, and in the fuxa view, the bind control can change it's value when device pushed data to fuxa.

I believe you can solve your problem by creating a Web API type device in Fuxa, but in this case, Fuxa will poll your endpoint, it won't be passive.

YUHAI0 commented 2 days ago

My thought is like this, fuxa have some api for example http rest api, that device send device to this api, and in the fuxa view, the bind control can change it's value when device pushed data to fuxa.

I believe you can solve your problem by creating a Web API type device in Fuxa, but in this case, Fuxa will poll your endpoint, it won't be passive.

I know this way, but this will tak a lot network flow if I bind a lot device tag. If use the open api way ( I have mentioned above), only device value change will make a network connection