Coder Social home page Coder Social logo

evectis / temboo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bentuino/temboo

0.0 2.0 0.0 50 KB

Temboo Arduino Library v1.2 with added support for Spark Core

License: Other

C++ 93.47% Makefile 3.33% C 2.32% Arduino 0.46% JavaScript 0.42%

temboo's Introduction

Temboo Arduino Library with Spark support

This repository holds a modified version of the Temboo Arduino library v1.2 with support for spark core. Instructions to build an application give here are for CLI mode. So please consult the spark.io web site for details how to install the CLI tools for the Spark Core.

Author: The Temboo Spark Core support was added by Karl N Kaiser. Please check-out my DYI IoT blog under http://bentuino.com

Installation

  1. Get the Spark Core firmware:

%git clone https://github.com/spark/core-firmware.git

%git clone https://github.com/spark/core-common-lib.git

%git clone https://github.com/spark/core-communication-lib.git

  1. Note: This step is only required with older firmware - Go to core-firmware/inc and uncomment the line 54 of file spark_wiring_ipaddress.h with your favorite editor

    // Overloaded cast operator to allow IPAddress objects to be used where a pointer

    // to a four-byte uint8_t array is expected

    //operator uint32_t() { return ((uint32_t)_address); };

    //bool operator==(const IPAddress& addr) { return (((uint32_t)_address)) == (((uint32_t)addr._address)); };

    bool operator==(const uint8_t* addr);

  2. Save your TembooAccount.h you generated with DeviceCoder to temboo-arduino-library-1.2\Temboo

  3. Build application:

%cd core-firmware/build

%make -f makefile.temboo clean all

  1. Connect your Spark Core to your computer via a USB cable

  2. Push both buttons, release Reset button and continue holding the other button until RGB-LED lights up yellow

  3. Download application into Spark Core

%make -f makefile.temboo program-dfu

Example

Two simple Spark application examples are included:

core-firmware/src/application_gxls.cpp - Example demonstrates the Temboo library with Google Spreadsheet

core-firmware/src/application_gmail.cpp - Example demonstrates the Temboo library with Gmail

to change the example that is compiled into the spark core edit the first line in the core-firmware/src/build.mk file:

CPPSRC += $(TARGET_SRC_PATH)/application.cpp => CPPSRC += $(TARGET_SRC_PATH)/application_gxls.cpp

or

CPPSRC += $(TARGET_SRC_PATH)/application_gmail.cpp

Testing

This version SHA eb93840 was tested with web based Spark SDK using SPARK FIRMWARE V0.3.4 (OCT 21) CHANGELOG:

  • core-firmware 6c98a17
  • core-communication-lib d824a68
  • core-common-lib 3cdaed3

Building this code was tested under Mac OS X 10.10 Yosemite following Spark's tool installation

Building this code was tested under Windows 8.1 using cygwin and the MINGW version of the ARM GCC compiler tool chain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.