Development of simple app for the proof of concept project
App acts like a client communicating with outside world using HTTP and sockets. In short it reads parameter from server and sends responses when needed.
App will consist of two pages. Setup page and user interface page. On setup page user will specify “IP address” and “port”. It will also have indicators called “connection” and “Server ID” and button called “Check ID”.
On main page there will be indicators called “connection”, “Alarm” and button called “Abort”,
App will try to establish connection to the specified IP address on the local network. If connection can’t be established it will retry in 5 seconds.
After connection is established app starts to monitor socket. Server will be sending data in ASCII formatted strings. For example server will send
“;” is delimeter
If parameter1 is above 50 (values will be from 0 to 100) or we received “alarm=1” app will make iPhone ring (if not in quite mode) and vibrate (similar to how phone rings and vibrates when it receives calls). “Alarm” indicator should also become red. Notification will be shown to the user if app is not on the foreground. User can press “Abort” button which will make phone stop ringing and it will send “abort” to the server. Indicator “Alarm” should become grey.
When user presses “Check ID” on the setup page application sends it’s IP and MAC addresses and then wait for response from tester response is displayed in “Server ID”.
Parameters must be saved so that when users close and open app again they don’t have to enter IP and port again.
App should be functional but there is no need to make UI look good.
App must work for iPhone 5S and up. Source code will be required. It will be compiled on my side using mac with High Sierra OS and Xcode 9.2