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.

An Introduction To Squirrel Applications

A sequence of working examples which demonstrate features, functionality, concepts and techniques, and which range from simple to advanced applications. Intended to help developers quickly become masters of Electric Imp application development.

Microsoft Azure Projects

  • Azure IoT Hub Examples — Learn how to use Electric Imp Libraries to connect imp-enabled hardware to Azure IoT Hub

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.