Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
YUHAI0 opened this issue Jun 27, 2024 · 7 comments

Comments

@YUHAI0
Copy link
Contributor

YUHAI0 commented Jun 27, 2024

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.

@YUHAI0 YUHAI0 changed the title [FEATURE] Add a tcp port to receive device data that device proactive send device data to fuxa [FEATURE] Add a tcp port to receive device data that device proactive send to fuxa Jun 27, 2024
@unocelli
Copy link
Member

Hi, can you explain better what you mean.

@rvbatista
Copy link
Contributor

Maybe a weight balance?

@YUHAI0
Copy link
Contributor Author

YUHAI0 commented Jul 2, 2024

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
Copy link
Contributor

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
Copy link
Contributor Author

YUHAI0 commented Jul 3, 2024

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

@unocelli
Copy link
Member

Then you make a listening option, but I will in any case use Web API.

@unocelli
Copy link
Member

#650
I’m going to close this as resolved. let me know if you have any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants