noobe
Posts: 6
Joined: Sun Aug 24, 2014 10:50 am

raspi pi c#/vb.net

Tue Aug 26, 2014 2:15 pm

Hello im enquiring about using data from a raspb-pi via python to then access it in c# in visual studio for an impending app I will make, what is the best way to go about this.

To extend atm I am using my raspberry pi as a ad-hoc network with a static ip address and would like to connect the two with a program that will allow me to do it wireless.

Any help will be much appreciated :)

W. H. Heydt
Posts: 12431
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: raspi pi c#/vb.net

Tue Aug 26, 2014 6:28 pm

Those are both Microsoft products. In particular, C# is MS's "modified" (broken?) version of C++. While it is possible that someone might have cobbled together compilers for those languages to run on a Linux system, there are probably IP impediments to doing so.

If I'm not too badly mistaken, .NET is handled on non-MS systems using Mono. A check with "apt-cache search mono" looks like that has been ported for use with the Pi.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: raspi pi c#/vb.net

Tue Aug 26, 2014 6:39 pm

Depends what sort of "data" you're collecting...

One way to do it would be to have the Python-on-Raspi program log results to a CSV file, and the use SFTP to transfer that file over to your PC, for the C#-on-Windows program to load and analyse.
Or if you want real-time updates, you could use a network socket to communicate between the two (or HTTP, or MQTT, or ...).

Return to “General discussion”