ios - BLE app sending data with time delay -


in ble app,app discover peripherals ,connect , write data successfully.its taking time bcoz every time connects ,discover service , characteristics diddiscovercharacteristicsforservice: in method sends data

[discoveredperipheral writevalue:payloadmessage forcharacteristic:maincharacteristics type:cbcharacteristicwritewithoutresponse]; 

....so cannot send writevalue in ibaction directely send data without invoking didconnect,discover service , charcteristics.help me...

if connected device (verify isconnected value of peripheral) don't have run discovery of services , characteristics again. if it's new connection, have discovery, there no other way on ios. in experience discovery quite fast, don't think should slow down app. better experience, display activity view while discovery , writing running.


Comments