hello guys !
i wanna make an iOS app to control a device remotely via IP Address.
that device is a PLC is a microcontroller , it has an IP Address and we can connect it to the internet
can you tell me how make that ?
thanks in advance
hello guys !
i wanna make an iOS app to control a device remotely via IP Address.
that device is a PLC is a microcontroller , it has an IP Address and we can connect it to the internet
can you tell me how make that ?
thanks in advance
First up, terminology: I’m going to use the term accessory to refer to the hardware you’re trying to talk to (because device is already ‘taken’ by your iOS device).
Next, the best way forward here very much depends on the features of your accessory. For example:
If your accessory includes a mini web server, you should talk to it via
URLSession
.If your accessory speaks a custom protocol over TCP, you should use
Stream
(or NWConnection
, if you’re OK with an iOS 12 beta dependency).If your accessory speaks a custom protocol over UDP, I’d recommend that you use
NWConnection
even though it requires iOS 12 beta, because the alternative, BSD Sockets, is distinctly un-fun to use from Swift.If your accessory implements Bonjour technologies [1], you can use
NetServiceBrowser
to find the accessory on the network.Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
[1] That is:
RFC 6762 Multicast DNS
RFC 6763 DNS-Based Service Discovery
first of all thanks for your aid
and it is an app like HomeKit controlling devices but i make one to contorl a device which called PLC , its has an IP Address and Gateway
can you send me links to show me how can i make something like that ?