Created Event

The created event object is published on this topic: glp/0/{SID}/ev/created/dev/{Protocol}/type/{Application_Type}

Where:

SID

is the segment identifier.

Protocol

is the protocol identifier, such as lon, cm, modbus, etc.

Application_Typeis the application type as reported with the device’s status object.

Device creation is complete when the created event is published.

The created event object has the following syntax:

{                                                                                                               
handle: Handle,
obj: {
     sts: STS,
     
cfg: CFG,
     
if: IF
     }
}


Parameter

Description

Handle

The device handle used with the IAP/MQ topic.

STS

The device status object. 

CFGThe device configuration object.
IFThe device interface object including all interface blocks and datapoints.

Example

For example, the following device creation request yields the created event shown.

Device Creation:

{                                                                                                               
action: “create”,
args: {
      type: “9FFFFF0501840430”
      }
} -> glp/0/SID/rq/dev/lon/nc.0/do


Created Event:

{
handle: “nc.0”,
obj: {
      cfg: {
          name: “”,
          ...
          },
          sts: {
              action: null,
              state: “normal”,
              type: “9FFFFF0501840430”,
              product: “NcMultiSensorExample”,
              ...
          },
          if: {
              NodeObject: {
                      “0”: {
                      ...
                  }
              },
              Lamp: {
                      “0”: {
                             nviValue: {
                                        value: { value: 0, state: 0 },
                                        …
                              },
                              …
                        },
                        …
               },
               …
          }
     }
}  -> glp/0/SID/ev/created/dev/lon/type/9FFFFF0501840430