B4J Question Communicate with .NET core application?

LucasHeer

Active Member
Licensed User
Longtime User
Hello!

I am working on a project that requires the use of a .NET core library. The company also provides a java library, but it is not open source, so I think building a wrapper is out of the question?

We have already implemented the library with .NET core. What would be the best way to communicate between my .NET core application and my B4J application. This will be on a raspberry pi.

Thank you!
 

LucasHeer

Active Member
Licensed User
Longtime User
B4X can consume web service or API developed from other languages using okHttpUtils2. Is the response in JSON or XML format?

The response is basically a sensor value (0-99999999). The company that builds the sensor has closed sources only for .NET core or java though.

I think an HTTP connection would work, but that makes me think local tcp socket?

1. Listen on the port until connection established
2. Start .NET core sensor application
3. Get values

I think I will try this and see how it works ?

Thank you!
 
Upvote 0

ThorstenStueker

Member
Licensed User
Hello!

I am working on a project that requires the use of a .NET core library. The company also provides a java library, but it is not open source, so I think building a wrapper is out of the question?

We have already implemented the library with .NET core. What would be the best way to communicate between my .NET core application and my B4J application. This will be on a raspberry pi.

Thank you!
I have many Raspbian Applications written with B4J and also with Java and a few of them are communicating also with Dotnet Apps. I am always using TCP-Sockets what is really simple to realize with B4J. This is reliable and you can setup a clean and working REST API for your Dotnet Application and work with it.
 
Upvote 0
Top