6.5 Function service procedure
The IPE is responsible for monitoring the Function property and synchronizing the change of the property to oneM2M resources. The IPE is also responsible for monitoring the update of the oneM2M resource that corresponds to the Function operation. Upon receiving the request targeting the resource, the IPE shall invoke the corresponding Function operation.

Figure 6.5-1: Procedure of registering function service
Monitors the registration: The IPE monitors the registration of the Function service to the OSGi framework.
Create resource: The IPE creates the corresponding resource to the oneM2M CSE.

Figure 6.5-2: Procedure of changing function property
Change of Function property: The Function property may be changed due to various reasons such as hardware triggered break, sensor change, local application change etc.
Monitors the change: The IPE monitors the change by subscribing to the eventable properties, acquiring the property periodically or by some other internal call back functions.
Update the resource: The IPE updates the corresponding resource of the Function.

Figure 6.5-3: Procedure of invoking function operation
Update resource: The oneM2M CSE receives update requests from applications to update the resource that corresponds with the Function service.
Monitors the change: The IPE monitors the change by subscribing to the resource and receiving notifications or polling etc.
Invoke the function operation: The IPE invokes the function operation provided by the Function service.