Mkr wifi 1010 to wake up an app on Mac OS

Hello to everyone.
I have an mkr wifi 1010 and I wish to wake up an appllication on Mac OS Monterey via Xcode Swift programming. I have experience in both programming , eithe Arduino Pseudo C and Apple Swift, but I have no idea from where to start to create a wake up mechanism to pop up a window on mac by means of a wifi event on Arduino.
This will be enough: the Arduino detect an input pin, sends a string via wifi to the mac, the Swift app react on the wifi message.
From where I should start? Any kind of help is welcome

You could write a TCP server on the Mac and connect to it from TCP (WiFi) client on the Arduino. Do you know how to open a listening port with Swift to wait for a TCP connection?

Unfortunately I have no idea. I have experience in measuring instruments programming but very few in networking. A little help to start is very appreciated

I'd start with some Google searches:
TCP server in Swift
TCP server OSX

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.