Bluno General Arduino

Bluno iOS write 'buffer'

userHead Account cancelled 2014-11-12 05:42:38 2128 Views0 Replies
I want to update some variables on the Bluno from iOS but writes seem to build up in a buffer and drain slowly.
Here I'm sending the value from a UISlider, as a 4 byte packet, but only after checking bReadyToWrite.
If I change the UISlider, TX/RX will flash for a few seconds after as the 'buffer' empties making update very unresponsive.

[code]- (IBAction)speedChanged:(UISlider *)sender {
    if (self.blunoDevice.bReadyToWrite)
        short int value = (sender.value - 0.5f) * 65535;
        NSData *dataPacket = [self dataPacketWithTag:TAG_SPEED value:value];
        [self.blunoManager writeDataToDevice:dataPacket Device:self.blunoDevice];

[code]void loop()
if (Serial.available() >= PACKET_SIZE) {
    if ( == HEADER) {          // 1st byte
      char tag =;                //  2nd byte
      if(tag == TAG_SPEED)
        val = << 8 ;      //  3rd Byte - data MSB
        val +=;            //  4th Byte - data LSB
        Serial.print("Speed:");      // Hundreds of these coming through very slowly.

Can I speed this up somehow? Or at least find out when Bluno is REALLY ready for another write?