   pins.miso_pin   = A4;
   pins.sck_pin    = A3;
 
-  pins.spi_clock_divider      = SPI_CLOCK_DIV64; //SPI_CLOCK_DIV8  = 2MHz SPI speed
+  pins.spi_clock_divider      = SPI_CLOCK_DIV16; //SPI_CLOCK_DIV8  = 2MHz SPI speed
                                                  //SPI_CLOCK_DIV16 = 1MHz SPI speed
-  
+                                                 //if you are having trouble with the connection this might be the reason
+                                                 //you might want SPI_CLOCK_DIV64 = 256 KHz
+
   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;

  pins.interrupt_number       = 1;

  rbc_mesh_hw_init(&pins);
 
  Spark.function("set_val", set_val);
  Spark.variable("tmp", &tmp, INT);

  return;
}

static uint8_t         uart_buffer_len = 0;
static uint8_t         dummychar = 0;

int initDone = 0;

int set_val(String args){

    if(!initDone){
        return -1;
    }

    uint8_t handle = args[0] - '0';
    uint8_t value  = args[1] - '0';
