From 16eb2040ed42e67bf524196da1623fce678bf282 Mon Sep 17 00:00:00 2001 From: Romedius Weiss Date: Mon, 4 Feb 2013 21:12:28 +0100 Subject: [PATCH] Removed api key from -ino file. --- .gitignore | 4 ++++ TSI_inout_ino/APIKey_template.h | 4 ++++ TSI_inout_ino/TSI_inout_ino.ino | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 TSI_inout_ino/APIKey_template.h diff --git a/.gitignore b/.gitignore index 0331bbb..6b33294 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,7 @@ *.exe *.out *.app + +#other +TSI_inout_ino/APIKey.h +*~ diff --git a/TSI_inout_ino/APIKey_template.h b/TSI_inout_ino/APIKey_template.h new file mode 100644 index 0000000..8521ae2 --- /dev/null +++ b/TSI_inout_ino/APIKey_template.h @@ -0,0 +1,4 @@ +// rename this file to "APIKey.h" and fill in a real key! + +String thingtweetAPIKey = "myThingspeakKey"; + diff --git a/TSI_inout_ino/TSI_inout_ino.ino b/TSI_inout_ino/TSI_inout_ino.ino index 8959067..6786154 100644 --- a/TSI_inout_ino/TSI_inout_ino.ino +++ b/TSI_inout_ino/TSI_inout_ino.ino @@ -28,6 +28,8 @@ Example sketches from Arduino team, Ethernet by Adrian McEwen #include #include +#include "APIKey.h" + // Local Network Settings byte mac[] = { 0xD4, 0x28, 0xB2, 0xFF, 0xA0, 0xA1 }; // Must be unique on local network @@ -36,7 +38,6 @@ unsigned int localPort = 8888; // local port to listen for UDP packets // ThingSpeak Settings char thingSpeakAddress[] = "api.thingspeak.com"; -String thingtweetAPIKey = "21I4R9UJQZJSC60Y"; // Variable Setup - check if these Variables are needed long lastConnectionTime = 0; @@ -78,7 +79,7 @@ int ethernetstatus = -1; int readStatus=0; // Twitter message, intermediate part -String tmsg = " Hackerspace @ Freies Theater at "; +String tmsg = " Hackerspace at "; //debug options boolean debug = false;