Skip to main content

Sample Code

To make the best use of the software provided here — as libraries you can access through the IDE, or sample code to paste into your own — you should have a basic familiarity with the Electric Imp Platform. We suggest working through our Getting Started Guide first. Sample code and other examples provided by Electric Imp now follows our formal Squirrel Style Guide.

imp API Cookbook

The imp API Cookbook provides a set of standard code recipes which will help you achieve key agent and device tasks in your own software. Each includes ready-to-use snippets of code that you can adapt or drop straight into your own application.

Salesforce Projects

IBM Watson Projects

Other Projects

Complete Sample Applications

These complete examples are hosted at Electric Imp’s GitHub repository.

Basic Hardware Examples

These examples provide the beginner with guidance on performing basic hardware interaction with an imp.