I'm developing a mobile application (iOS and Android) that is communicating via Bluetooth with embedded arm-based device running Linux. The communication is client-server. Phone (client) pairs with device, connects to it and sends queries. Device replies to these queries.
I have decided to use Cordova (and Ionic framework) for the mobile development. The Android part is done. For the communication I'm using BluetoothSerial plugin (https://github.com/don/BluetoothSerial).
The server part on the device is based on this tutorial: https://people.csail.mit.edu/albert/bluez-intro/x502.html#rfcomm-server.c
Recently I purchased iPhone SE and I want to target iOS. All is working fine except the Bluetooth communication.
If I'm understanding it correctly, Bluetooth communication on iPhone is limited to just Bluetooth Smart (or Bluetooth Low Energy/BLE). The BluetoothSerial plugin that I'm using is, capable to communicate on iOS with very limited number of devices.
So my questions are:
Is it possible to have full Bluetooth support on iOS? By full I mean a chat-like communication where client (phone) is sending some structured data and the device is replying also some structured data in text .
If so, can I use BluetoothSerial plugin? I have also find BLE plugins for Cordova but they seem to have very limited support for Bluetooth communication (from my perspective). They are just for getting or writing some advertised characteristics on BLE device.
If I have to use BLE-based solution I think that I have to also rewrite server code on the device. Am I right?
Thank you for any cues, suggestions or solutions.