   diceRollCharacteristic.setValue((diceID << 4) | value);
 }
 
+/**
+ * Handle commands coming from the server
+ */
 void commandHandler(BLECentral &central, BLECharacteristic &characteristic) {  
 }
 
+/**
+ * On connect
+ */
 void blePeripheralConnectHandler(BLECentral &central) {
 }
 
+/**
+ * On disconnect
+ */
 void blePeripheralDisconnectHandler(BLECentral &central) {
 }
 

  if(central) {
    while(central.connected()) {
      blePeripheral.poll();
      unsigned long now = millis();
      if(now - last > (5 * 1000)) {
        last = now;

// org.bluetooth.characteristic.user_control_point
BLEUnsignedCharCharacteristic diceCommandCharacteristic("0x2A9F", BLERead | BLEWrite | BLENotify);

int diceID;
unsigned long last = millis();

void setup() {
  /**
   * Identify diceID based on jumper
   */
  diceID = 3;
  
  blePeripheral.setLocalName("CurieDice");
  blePeripheral.setAdvertisedServiceUuid(diceService.uuid());
  blePeripheral.addAttribute(diceService);
