ESP8266Kinto.cpp
// Constructor /////////////////////////////////////////////////////////////////
// Function that handles the creation and setup of instances
Constructor
Function that handles the creation and setup of instances
Constructor Function that handles the creation and setup of instances
Kinto::Kinto(char* server, char* token, char* secret, char* bucket, char* collection, char* fingerprint = "")
{
  strcpy(this->server, server);
  strcpy(this->fingerprint, fingerprint);
  strcpy(this->token, token);
  strcpy(this->secret, secret);
  strcpy(this->bucket, bucket);
  strcpy(this->collection, collection);
  this->url = String(server) + "/buckets/" + String(bucket) + "/collections/" + String(collection) + "/records";
  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, HIGH);
}
Kinto :: Kinto ( char * server , char * token , char * secret , char * bucket , char * collection , char * fingerprint = " " ) { strcpy ( this -> server , server ) ; strcpy ( this -> fingerprint , fingerprint ) ; strcpy ( this -> token , token ) ; strcpy ( this -> secret , secret ) ; strcpy ( this -> bucket , bucket ) ; strcpy ( this -> collection , collection ) ; this -> url = String ( server ) + " " + String ( bucket ) + " " + String ( collection ) + " " ; pinMode ( LED_BUILTIN , OUTPUT ) ; digitalWrite ( LED_BUILTIN , HIGH ) ; }
Constructor
Function that handles the creation and setup of instances
Constructor Function that handles the creation and setup of instances
// initialize this instance's variables // do whatever is required to initialize the library