Step 5: Firing Instant A-events
|Top Previous Next|
This step corresponds to test_agg_lib_5.
Instant A-events are sent to the AggreGate server "on the spot". They are "lightweight" — there is no dealing with storing them on the flash disk, etc. They are fast(er) — just send! They are more reliable — no flash disk complexity involved. They are also easier to be lost. Should your device lose power at a wrong moment, the instant A-event will be forgotten. Another limitation: instant A-events can only be fired successfully when there is an active connection to the AggreGate server. Bottom line: use instant A-events for events that are not-so-important and/or numerous.
In this step we add an instant A-event for reporting the booting (powering up) of the device.
Notice how the add_fire_instant_event() call has the event_level argument. The level defined by this argument will override the default level set in the configurator, unless you set the event_level= EN_AGG_EVENT_LEVEL_USE_DEFAULT, in which case the default event level will be used.
To be able to see instances of your new event, right-click on the device in the tree and choose Monitor Related Events.