Thank you Matthias! I haven't played with 9.6.2 yet but will now be
doing so very soon. I'll look into it tomorrow (it's almost 2 AM here)
and see what I can learn.
Thanks again -
Phil
On 3/10/21 1:47 AM, matthias rebbe via use-livecode wrote:
Hi Phil,
i would say mergFTPd is the easiest way to accomplish that.
Did you already check the mergFTP Demo stack which is inside the Livecode app
bundle, e.g. here for LC 9.6.2
/Applications/LiveCode Business 9.6.2 (rc
2).app/Contents/Tools/Ext/mergFTPD-1.0.56
You just need to set/select the correct provisioning profile in the standalone
settings under iOS and you could test that stack on your iOS device or in the
simulator.
Now regarding fetching data from the iOS device.
Let's say the ip of the iOS device is 192.168.0.25, the username and password
for the ftp access are the same as in the demo stack and the file we want
retrieve is report.xlsx and want to store it on the desktop, then the command
to fetch the file is
put URL "ftp://hello:world@192.168.0.25/report.xlsx" into URL
"binfile:~/desktop/report.xlsx"
To upload a file to the server the following would be used
put URL "binfile:~/desktop/report.xlsx" into URL
"ftp://hello:world@192.168.0.25/report.xlsx"
Regards,
Matthias
-
Matthias Rebbe
Life Is Too Short For Boring Code
Am 10.03.2021 um 08:27 schrieb Phil Davis via use-livecode
<use-livecode@lists.runrev.com>:
I'm anticipating the need to connect an iOS app with a companion desktop app so
the desktop app can get data from the mobile app and do some reporting and
recordkeeping. It should also be able to transfer data back to the mobile app.
Does anyone have an example of how to make that happen? I can't find one
anywhere.
The data connection & transfer don't have to be made with mergFTPd but I see
it's an LC option.
Thanks -
Phil
--
Phil Davis
503-307-4363
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
--
Phil Davis
503-307-4363
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode