I must develop an iPhone app to monitor a device.
The device is a boat light control system. Using the iPhone app I can control lights on/off. Lights can be turned on/off from the device touchscreen or using the iPhone app.
It's important that the application is notified of lights status change (someone has turned on a light form wall interrupter or from the device touchscreen). But is important that device/iPhone status update procedure is power optimized (I don't want to drain the iPhone battery using polling to continuously read status from the device). It's not a problem to add a Bluetooth to the device if this can optimize the system.
Device and App are on the same LAN (the solution must work without internet connection).
The device expose a rest service to read/change lights on/off status.
In the app I need to display in near-real-time the device status changes.
Are there any better solution for the device to notify the iPhone app a status change than do a call every n seconds by the App for checking?
A kind of local device->iPhone notification? Maybe some feature of homekit may came in help?