ThingWorx Edge C SDK > Steps for Setting Up Applications > Defining Events
  
Defining Events
Event definitions describe interrupts that ThingWorx platform users can subscribe to if they want to be notified when something happens.
Events require that a data shape for event data be defined in code. Events can be defined in code or by using the following attributes:
ThingWorxEventDefinition — Defines the event.
name — Name of the event.
description — A description for the event.
dataShape — The name of the data shape for the event data.
Events must be registered. Refer to Register Events for details. The registered event is reported back to the server when it is browsing. Note that Events do not have callbacks since they cannot be invoked from ThingWorx platform to the Edge. You can add aspects to an Event that is already registered, using twApi_AddAspectToService.