Device Events
During application initialization (onApplicationInitialized), if requestAllDevices is enabled (true by default), the adapter sends all device/asset related information using the com.apama.cumulocity.Device event on the com.apama.cumulocity.Device.CHANNEL (same as cumulocity.devices) channel.
After all devices/assets are sent, the adapter sends a com.apama.cumulocity.RequestAllDevicesComplete(-1) event.
Example of a device event:
com.apama.cumulocity.Device("43026768","Mbed Test Device",
"com_ublox_C027_REV-A","",["c8y_Relay","c8y_Configuration",
"c8y_Message"],[],[],{"alt":610.2,"lat":17.426479,"lng":78.33123},
{,"attrs.c8y_Availability":any(dictionary<any,any>,
{any(string,"status"):any(string,"UNAVAILABLE")}),
"attrs.c8y_Hardware":any(dictionary<any,any>,
{any(string,"model"):any(string,"Ublox C027"),
any(string,"revision"):any(string,"1"),
any(string,"serialNumber"):any(string,"352648069564516")}),
"attrs.c8y_IsDevice":any(dictionary<any,any>,{}),
"attrs.c8y_Mobile":any(dictionary<any,any>,
{any(string,"cellId"):any(string,"14D80CD"),
any(string,"iccid"):any(string,"89914905900016774658"),
any(string,"imei"):any(string,"352648069564516")}),
"attrs.c8y_MotionTracking":any(dictionary<any,any>,
{any(string,"active"):any(boolean,true),
any(string,"interval"):any(integer,0)}),
"attrs.c8y_RequiredAvailability":any(dictionary<any,any>,
{any(string,"responseInterval"):any(integer,20)}),
"attrs.com_cumulocity_model_Agent":any(dictionary<any,any>,{}),
"owner":any(string,"device_352648069564516")})
If subscribeToDevices is enabled (true by default), any devices added to Cumulocity IoT after application initialization will be sent to the default channel.