SwiftUI: Macbook in Swift Send signals to Ipad to change its display

Hi all,

I need help sending a 1/0 signal from iPad/macbook to iPad/macbook via wifi using SwiftUI. This does not require any memory, just sending a 1/0 signal.

I am trying to do smth similar to embedded system. On Macbook Swift UI app, when I click the button "Go". It will send a signal via wifi to the Ipad which is also in the swift UI app, to change its display. The Macbook functions like a controller, when press 'On' on the UI, it will turn on the display on iPad UI.

Cant find any example online regarding this problem.

Thank you!

MacBook 0 ->0 -> 0 iPad Display unchanged

MacBook 1 -> 1 -> 1 iPad Display Changed when receives a signal from Macbook Via Wifi.

SwiftUI: Macbook in Swift Send signals to Ipad to change its display
 
 
Q