         case 4:
             initState++;
             rbc_mesh_value_enable((uint8_t) 2);
+            initDone = 1;
             Serial.println("init done");
     }
 }
 
 
 void loop() {
-    initConnectionSlowly();
-
+    if(!initDone){
+        initConnectionSlowly();
+    }
     //Process any ACI commands or events
     hal_aci_data_t evnt;
     newMessage = rbc_mesh_evt_get(&evnt);

  pins.miso_pin   = A4;
  pins.sck_pin    = A3;

  pins.spi_clock_divider      = SPI_CLOCK_DIV64; //SPI_CLOCK_DIV8  = 2MHz SPI speed
                                                 //SPI_CLOCK_DIV16 = 1MHz SPI speed
  
  pins.reset_pin              = D2; //4 for Nordic board, UNUSED for REDBEARLAB_SHIELD_V1_1
  pins.active_pin             = NRF_UNUSED;
  pins.optional_chip_sel_pin  = NRF_UNUSED;

    return rbc_mesh_value_set(handle, &value, (uint8_t) 1);
}

void setup(void)
{
  Serial.begin(9600);

  pins.board_name = BOARD_DEFAULT; //See board.h for details REDBEARLAB_SHIELD_V1_1 or BOARD_DEFAULT
  pins.reqn_pin   = D4; //SS for Nordic board, 9 for REDBEARLAB_SHIELD_V1_1
  pins.rdyn_pin   = D3; //3 for Nordic board, 8 for REDBEARLAB_SHIELD_V1_1
