Skip to main content



Device + Agent


The imp object is a singleton which provides methods that relate to the imp on which the code is running, whether it’s a physical one in a device, or a virtual imp, ie. an agent.

The imp object is instantiated automatically, as is its net.

For functionality relating to the IO buses provided by the imp to communicate with and control peripheral devices, see the hardware object. For the functionality of the imp’s IO pins, see the Pin class.

Member Entities

The imp object has the following member methods:

The imp object has the following member property:

  • imp.configparamsA table of information relevant to factory configurations

The imp object also has the following deprecated member methods, which should not be used in new code, but are documented here as an aid to understanding and migrating old code: