I am working on a project that requires data received from the arduino via pyserial to be send to the flutter app. I have been able to capture the data, however I'm not sure on how to send it to flutter app.
Truly appreciate any help. Thanks a lot.
CodePudding user response:
You will have to create an API of the python script, I use Flask for the purpose. The Flask API you create will be hosted on local port. You can also use flutter packages like startflut to integrate python backend with flutter frontend application.
CodePudding user response:
The best way to connect python
to application is api(application programming interface)
, this article help you understand better
you can use flask or django i prefer to use django api
and you can follow this answer