Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
I have data that I already gathered using the loops I made in a microcontroller. Then it will go to a GUI made in Visual C#. I need those data to be accessed through the Internet. Are there any websites that cater C# well enough? How can I upload information through the internet using visual studio? Please enlighten me.

After that, I am quite confused in what method to use so that I can upload the files and access them, like what syntax to use and such.

Last thing, I also wanted to know if I know a specific IP address of a free webhosting site (for example, 000webhost), does it mean that I can use the Parse method of C# and access it? Thank you.


P.S. I just need to upload an array/table of data through the Internet that can be accessed by multiple clients.
Posted
Comments
Sinisa Hajnal 23-Oct-14 8:19am    
The question has nothing with microcontrollers.

The sites don't cater to C# (or any other language), generally web access doesn't care what server is in the background.

Accessing through the internet can mean FTP access, web access etc...

If you put your data in a database and create the page for looking at that data (wix has good designer which doesn't require much understanding of the principles of the web) you will have what you ask for. Or you could create XML / CSV / some other kind of file, upload it somewhere with public access and again, write web page to show that data...or allow clients to download it.

If you mean that your application should access data, then you need your database hosted somewhere (godaddy, for example) and simply use its connection string from the application - but then anyone needing the data should have your application (or direct database access)
Matthew Chua 23-Oct-14 9:04am    
Thank you for your insight and I'll check your suggestions if I can do them. I'm a bit new at this. And also, sorry for associating it with microcontrollers even though it is not related.

Anyways, I'd like to clarify that our "database" only needs a column of data, wouldn't be making a database overkill? Also, in your last suggestion, do you have an idea if I can call connection strings on Visual Studio? I plan to put the database on my GUI. Thank you.
Sinisa Hajnal 23-Oct-14 9:21am    
You're mixing terminology again. You cannot put database on your GUI, you can put the database on your local computer or remote server.

I don't know what you mean by "call connection strings on VS" - you can define them and use them to access the database if that is what you mean.

If it is only a single column, you can use any kind of file, but you still need shared folder of some kind so that your app can access it remotely.

There are simple databases with very little overhead.
Matthew Chua 23-Oct-14 9:47am    
Okay. Sorry. But I get your point now, though. Thank you. :)

What I meant in "call connection strings on VS" was exactly what you explained too. It's because I'm not sure if VS can access a database that is uploaded online. (Like godaddy, as you mentioned).
johannesnestler 23-Oct-14 9:25am    
From your questions I guess you have background in automation industry and PCL programming, but not in "high Level" programming - correct? So maybe you should aim for the simplest approach first. Try to write your data to a file - XML is very well supported by .NET, could also be a simple CSV or text Format - I wouldn't go for binary since you say your structure is quite simple - I'd guess it some kind of "trend"-data (like a temperature, pressure, etc. changing over time?). Then "upload" the file to a web "space" (via tftp, ftp,...) you can get it for free (cloud like OndDrive an option?). Maybe tell us what you want to do with that data - present it in other "Clients" = GUI applications you write - Or do you need a "web-site" to access the data? I/we can help you to write the code for each step then... Hard to recommend a hoster - you have to evaluate what you need - traffic - bandwith, costs, do you (want to) own a Domain, space need, tech available, etc. <- just my 2c

1 solution

My thoughts on it are just put in an XML file that is on google drive. As your criteria seems to be:

1. Free
2. Little programming(as your clearly not comfortable with sockets, web services etc)


Site note, you can save a recordset directly to XML, and read it right back in.
 
Share this answer
 
v2
Comments
johannesnestler 23-Oct-14 10:59am    
would be a good answer - I thought in the same direction first but OP clarified in between (see comments) that he needs a Website... maybe have a look what I recommended - and advice if you have other opinions...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900