Site Tools


notification_manager_for_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notification_manager_for_linux [2020/03/11 10:09]
107.10.57.205 [Terminology]
notification_manager_for_linux [2020/03/11 10:09]
107.10.57.205 [Service Initialization]
Line 97: Line 97:
 The Notification SDK supports applications to find and subscribe the notification resources. It prioritizes virtual resources and maps the virtual resource to the original resource. The Notification SDK supports applications to find and subscribe the notification resources. It prioritizes virtual resources and maps the virtual resource to the original resource.
  
-===== Service Initialization ===== 
------ 
-Initializes the configuration parameters such as the service operation mode, service type etc. 
- 
-It also registers the event listeners for the presence of devices whose resources need to be hosted. 
- 
-NB: This event driven mechanism can be further enhanced to pre-check the power and memory capabilities of a device and dynamically decide which device needs its resources to be hosted. 
- 
- 
-<code cpp> 
-void NotificationManager::​initialize() 
-{ 
-  cfg.ipAddress = "​134.134.161.33";​ 
-  cfg.port = 5683; 
-  cfg.mode = ModeType::​Both;​ 
-  cfg.serviceType = ServiceType::​InProc;​ 
-  nmOCPlatform = new OCPlatform(cfg);​ 
-  //Register Hosting Event 
-  //Listen to on presence of Lite device 
-  //Check if Hosting Required 
-} 
-</​code>​ 
  
  
notification_manager_for_linux.txt ยท Last modified: 2020/03/11 10:09 by 107.10.57.205