Skip to main content

Code Libraries

The Electric Imp Platform supports the addition of software libraries to both your agent and device code. Any of our libraries may be included in your code, and you can include multiple libraries. At this time, only libraries hosted by Electric Imp are available. However, all of our libraries are open source, and you can viewed, download or fork the library source from our GitHub repo.

Electric Imp’s libraries have been issued under the terms of the MIT License to allow you free usage of each library in your own code. You should understand the terms of this license before you make use any of our libraries. Some of the libraries we host are provided by third-parties, so you should check a given library’s documentation for ownership information and any special licensing terms imposed by the third-party concerned.

New additions

Library name Directive to load the current version Availability
ThingWorx ThingWorx

#require "ThingWorx.agent.lib.nut:1.0.0"

  • agent
W5500 Wiznet W5500 DHCP

#require "W5500.device.lib.nut:2.1.0"
#require "W5500.DHCP.device.lib.nut:2.0.0"

  • device
AWS AWS Kinesis Streams

#require "AWSRequestV4.class.nut:1.0.2"
#require "AWSKinesisStreams.agent.lib.nut:1.0.0"

  • agent
Google Cloud Platform Google PubSub

#require "GooglePubSub.agent.lib.nut:1.0.0"

  • agent
Utilities Advanced Encryption Standard (AES)

#require "AES.lib.nut:1.0.0"

  • agent
  • device

Updated libraries

Library name Directive to load the current version Availability
Google Maps Google Maps

#require "GoogleMaps.agent.lib.nut:1.0.0"

  • agent
ThingWorx ThingWorx

#require "ThingWorx.agent.lib.nut:1.0.0"

  • agent
CFAx33KL CFAx33KL

#require "CFAx33KL.device.lib.nut:2.0.0"

  • device
W5500 W5500

#require "W5500.device.lib.nut:2.1.0"

  • device
W5500 Wiznet W5500 DHCP

#require "W5500.device.lib.nut:2.1.0"
#require "W5500.DHCP.device.lib.nut:2.0.0"

  • device