I am trying to create a home security system with multiple sensors. I am using the Raspberry Pi as the main control system that will be located close to each of these sensors, and each sensor will connect to the Raspberry Pi with BLE. My current problem is that I am trying to connect the Raspberry Pi to an iOS phone application that I developed using SwiftUI. I want the app to mainly be able to arm and disarm the system and allow the Raspberry Pi to send notifications to the phone app when a sensor has been triggered. I am not sure what the best way to send data back and forth between the app and the Raspberry Pi is. I want to try and pass information through a haroku or an AWS server, but I know there may be other options such as MQTT and SSH. I was wondering what would be the most effective way to send information and what would be a good place to start to get information sent between the app and the Raspberry Pi.




