#include "thingspeakSender.h"

#include "ThingSpeak.h"
#define USE_WIFI101_SHIELD
#include "BridgeClient.h"
BridgeClient client;


void ThingspeakSender::init()
{
  ThingSpeak.begin(client);

  Serial.println("\nconnected to ThingSpeak!");
}

void ThingspeakSender::sendCounter(int counter)
{
  //send '1' to the IoT server on the channel
  ThingSpeak.writeField(channelNumber, 1, counter, writeAPIKey);
}

#include "thingspeakSender.h"

#include "ThingSpeak.h"
#define USE_WIFI101_SHIELD
#include "BridgeClient.h"
BridgeClient client;


void ThingspeakSender::init()
{
  ThingSpeak.begin(client);

  Serial.println("\nBottle-Opener is now connected to ThingSpeak!");
}

void ThingspeakSender::sendCounter(int counter)
{
  //send '1' to the IoT server on the channel
  ThingSpeak.writeField(channelNumber, 1, counter, writeAPIKey);
}

Extend log when connected to the IoT platform
Extend log when connected to the IoT platform
