Custom Object Models

Many device resources are defined in the OMA LwM2M Object and Resource Registry . However, you can also define additional objects by using Custom Object Models.

Custom objects are defined in XML or JSON. The following custom object defines three resources:

<?xml version="1.0" encoding="UTF-8"?>
<LWM2M xmlns:xsi="" xsi:noNamespaceSchemaLocation="">
  <Object ObjectType="MODefinition">
    <Name>Custom Model</Name>
    <Description1>Custom model</Description1>
      <Item ID="0">
        <RangeEnumeration />
        <Description>Current location in X.</Description>
      <Item ID="1">
        <RangeEnumeration />
        <Description>Target location in Y.</Description>
      <Item ID="2">
        <Name>Execute Command</Name>
        <Type />
        <RangeEnumeration />
        <Units />
        <Description>Execute command.</Description>
    <Description2 />

When a custom object model definition is added to Soracom Inventory, its resources will be available to all managed devices. However, each device Agent must also be configured or include additional implementation to support the custom object.

Adding Custom Object Models

  1. Login to the User Console. From the Menu, open the Object Models screen.

  2. Click the Add object model button.

    Add object model

  3. Enter the object model Schema, and ensure that the Format matches the definition format. Then click Save.

    New device object model

The object model will be listed in the Object Models list.

Custom object model

The resources for device whose agents have been configured for custom object model will automatically update, and you will be able to see the custom object model resources in the device details view:

Observing custom object models