plotly interface based on ardunio sample code

Dependents:   Plotly_HelloWorld

Library for plotting a simple x/y scatter chart on the plot.ly website.

See plotly_HelloWorld for sample usage.

Revision:
1:d532e96fca12
Parent:
0:96532c59670f
Child:
2:d53d74ed68ac
--- a/plotly.h	Wed Jul 02 08:47:09 2014 +0000
+++ b/plotly.h	Wed Jul 02 10:13:24 2014 +0000
@@ -4,10 +4,10 @@
 #include <EthernetInterface.h>
 #include <TCPSocketConnection.h>
 
-EthernetInterface eth;
 
 /*********************************
 in main.cpp
+EthernetInterface eth;
 #define num_traces 1
 // Sign up to plotly here: https://plot.ly
 // View your API key and stream tokens in your settings: https://plot.ly/settings
@@ -60,11 +60,11 @@
         char *fileopt;
 
     private:
-        void print_(int d);
-        void print_(unsigned long d);
-        void print_(float d);
-        void print_(char *d);
-        void printHex_(uint16_t d);
+        bool print_(int d);
+        bool print_(unsigned long d);
+        bool print_(float d);
+        bool print_(char *d);
+        bool printHex_(uint16_t d);
 
         int len_(int i);
         int len_(unsigned long i);
@@ -80,6 +80,8 @@
         char** stream_tokens_;
         char *filename_;
         int nTraces_;
+        
+        bool initalised;
 
 };
 #endif