Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Ask the Flomies › Floble IOS sample code
Hello Guys,
Could you please provide the iOS sample code? In the SDK we only found the Android sample code. Please advise.
In addition, have a quick question. With the way the SDK is set up, when the Floble loses BLE connection, will it automatically connect to the original device it was paired with or will it scan for the closest device? Please advise, as we need to write our app around it. Thank you!
Hi Michael,
Here is the Flomio SDK v2.2.
There is a readme file with sample code in the iOS folder.
When the Floble loses connection it will automatically connect to whichever FloBLE is nearest. To change this you can use the ‘specificDeviceId’ property when configuring, this will only connect to the device with that device ID. So you would leave this blank when first connecting and then change the specificDeviceId property to be the deviceId of the connected device. This feature has only been added so please let us know if there is any issues.
Kind Regards,
Scott
You must be logged in to reply to this topic.