 
 #include "logger.h"
 
+/////////////////////////////////////////////
+// Include of Iot Platform's connectors
 #include "thingspeakReceiver.h"
 ThingspeakReceiver thingspeakReceiver;
+int thingsSpeakCounter = 0;
+
+#include "shiftrConnector.h"
+ShiftrConnector shiftrConnector;
+int shiftrCounter = 0;
+/////////////////////////////////////////////
 
 #include <Adafruit_LEDBackpack.h>
 #include <Adafruit_GFX.h>

  //setup the IoT platforms
  logger->log("Start setup connection with IoT platforms...\n");
  thingspeakReceiver.init();

  //Everything seems to be ok, let's start !
  logger->log("\nBottle Opener up, Let's start to play :) !!!\n");

   Arduino Loop
*/
void loop() {
  //need to refresh shiftr API in order to send and receive new messages
  shiftrConnector.loop();

  thingsSpeakCounter = thingspeakReceiver.receiveCounter();
  shiftrCounter = shiftrConnector.receiveMessage();

  //display whatever counter, they should be the same, independently of the platform
  displayCounter(shiftrCounter);

  delay(10);
}

/**
