Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm currently developing an app for a company who wants to be able to press a button on an iPad that will launch a program on a windows pc, gather information from the windows pc and return that info back to the iPad.

What I have tried:

I've been able to get the individual sides working where the windows computer grabs the data when it receives a signal. And have the iPad take the data and display it, however I can figure out a way to actually transmit the data between the two. All research I've done comes out to nothing as there is nothing on this.
Posted
Updated 24-Jun-22 9:51am
Comments
Richard MacCutchan 24-Jun-22 11:49am    
The obvious answer is to use sockets between the two. The Windows PC would need a server process listening for a request from the iPad. The iPad would call the server and ask for the data, which the server would transmit back. Another possibility is data sharing between the two, but that would still require some trigger to get the PC to provide the data.
Charles Urban 24-Jun-22 12:54pm    
Would it be easier to use like a Microsoft surface pro than an ipad for this sort of communication you think?
Richard MacCutchan 25-Jun-22 4:26am    
Well it rather depends on what actual problem you are trying to solve. Communication between devices is not difficult once you understand socket programming. So whether it an iPad, a Surface, or even a mobile phone, it all the other parts of the application that will need the most work.
Charles Urban 25-Jun-22 12:43pm    
Okay, Im going to look into socket programming, when researching no one mentions that as a possibility thank you!
Richard MacCutchan 25-Jun-22 12:54pm    
Part of the problem with questions such as yours is that we really do not have enough background to offer what might be considered a definitive answer. A forum like this is fine for answering specific technical questions, but design issues are far more complex, and there is not the space or the time to do them justice.

Maybe you can take a look at the free and open-source FreeFileSync[^] for inspiration.
The source code can be found here: GitHub - hkneptune/FreeFileSync: A Copy of FreeFileSync Source Code[^]
 
Share this answer
 
v2
do you have any code examples of what you have tried?
 
Share this answer
 
Comments
Charles Urban 24-Jun-22 12:47pm    
I haven't been able to try anything. Right now im just trying to think of a way to wirelessly transmit data between the two and I cant even think of any libraries that would allow that sort of thing.
k5054 24-Jun-22 13:49pm    
If your PC and IPad are both connected to the same WiFi network, then any client/server TCP solution would work. Likewise, if the PC has bluetooth, then some sort of bluetooth transfer should be possible. Then there's USB, in which case you might have to treat the IPad as a storage device on the PC.
Charles Urban 25-Jun-22 12:43pm    
Ill look into this thank you!
Richard Deeming 27-Jun-22 10:39am    
You've been here long enough to know that this should have been posted as a comment to the question, NOT a "solution".
rnbergren 27-Jun-22 11:19am    
your right. I frequently get that wrong. I am sorry

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