plotly interface based on ardunio sample code
Library for plotting a simple x/y scatter chart on the plot.ly website.
See plotly_HelloWorld for sample usage.
Diff: plotly.h
- Revision:
- 2:d53d74ed68ac
- Parent:
- 1:d532e96fca12
- Child:
- 4:33006c37c633
- Child:
- 6:e57d6e9313f4
--- a/plotly.h Wed Jul 02 10:13:24 2014 +0000 +++ b/plotly.h Thu Jul 03 15:21:30 2014 +0000 @@ -35,6 +35,9 @@ ********************************************/ + +#define k_bufferSize 512 + class plotly { public: @@ -65,14 +68,18 @@ bool print_(float d); bool print_(char *d); bool printHex_(uint16_t d); + + bool sendFormatedText(char* data, int size); + void echoRxData(); + int len_(int i); int len_(unsigned long i); int len_(char *i); - char txBuffer[128]; - char rxBuffer[128]; - TCPSocketConnection socket; + char buffer[512]; +// char rxBuffer[128]; + TCPSocketConnection *socket; unsigned long fibonacci_; char *username_;