hakha4 Member Licensed User Longtime User Apr 28, 2015 #1 Hi. Kind of a newbie and need some advise. My aim is to launch a non gui B4J app from a Windows script with data to be sent to a Raspberry PI trough TCP. I've finished the Raspberry Pi part in Gambas and this work ok. I've read tutorials for non gui app but I am uncertain how to implement TCP part. It is important that it is relaible. Can anyone give me a hint or even better a basic code example to start with. I haven't found any examples that address my issue. Regards Håkan
Hi. Kind of a newbie and need some advise. My aim is to launch a non gui B4J app from a Windows script with data to be sent to a Raspberry PI trough TCP. I've finished the Raspberry Pi part in Gambas and this work ok. I've read tutorials for non gui app but I am uncertain how to implement TCP part. It is important that it is relaible. Can anyone give me a hint or even better a basic code example to start with. I haven't found any examples that address my issue. Regards Håkan
Erel B4X founder Staff member Licensed User Longtime User Apr 29, 2015 #2 It is exactly the same as in Android or in a UI app. You need to use jNetwork library with AsyncStreams. Make sure to call StartMessageLoop to avoid the program from exiting. Upvote 0
It is exactly the same as in Android or in a UI app. You need to use jNetwork library with AsyncStreams. Make sure to call StartMessageLoop to avoid the program from exiting.
hakha4 Member Licensed User Longtime User Apr 29, 2015 #3 Thank's for reply. Managed to get a working app with just a few lines Upvote 0