|
@@ -13,7 +13,7 @@ interface IBridgeService {
|
|
|
void registerActivityCallback(IBridgeActivityCallback cb);
|
|
|
|
|
|
/**
|
|
|
- * Remove a previously registered callback interface.
|
|
|
+ * Remove a previously registered activity callback interface.
|
|
|
*/
|
|
|
void unregisterActivityCallback(IBridgeActivityCallback cb);
|
|
|
|
|
@@ -23,14 +23,14 @@ interface IBridgeService {
|
|
|
int getPid();
|
|
|
|
|
|
/**
|
|
|
- * Often you want to allow a service to call back to its clients.
|
|
|
+ * Often you want to allow a Service to call back to its clients.
|
|
|
* This shows how to do so, by registering a callback interface with
|
|
|
* the service.
|
|
|
*/
|
|
|
void registerBridgeServiceCallback(IBridgeServiceCallback cb);
|
|
|
|
|
|
/**
|
|
|
- * Remove a previously registered callback interface.
|
|
|
+ * Remove a previously registered service callback interface.
|
|
|
*/
|
|
|
void unregisterBridgeServiceCallback(IBridgeServiceCallback cb);
|
|
|
|
|
@@ -44,7 +44,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* retrieve all resources of the deivce in BridgeService
|
|
|
- * @param device_uuid : unique identity of ocf device
|
|
|
+ * @param device_uuid : unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @return resource list data with json array format as String
|
|
|
* [{"anchor":"ocf://15ba3c25-8cdd-41f8-6f9e-fe49105dce0a","uri”:”/light","rt":"[oic.r.switch.binary]","eps":"[coaps://192.168.0.3:43370]","if":"BASELINE | RW","pm":"DISCOVERABLE | OBSERVABLE"},
|
|
|
* {"anchor":"ocf://15ba3c25-8cdd-41f8-6f9e-fe49105dce0a","uri":"/dimming","rt":"[oic.r.light.dimming]","eps":"[coaps://192.168.0.3:43370]","if":"BASELINE | RW","pm":"DISCOVERABLE | OBSERVABLE"}]
|
|
@@ -53,7 +53,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* request Getting all properties of the resource to the remote OCF device
|
|
|
- * @param device_uuid unique identity of ocf device,
|
|
|
+ * @param device_uuid unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @param resource_uri uri of ocf resource (eg. /a/light)
|
|
|
* @return
|
|
|
* - true : function call success,
|
|
@@ -63,7 +63,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* request Posting/Putting the value of properties to the remote OCF device
|
|
|
- * @param device_uuid unique identity of ocf device,
|
|
|
+ * @param device_uuid unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @param resource_uri uri of ocf resource (eg. /a/light)
|
|
|
* @param prop_data the property values of the resource (eg. { "power" : true, "level" : 100 }
|
|
|
* @return
|
|
@@ -74,7 +74,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* request Observing all properties of the resource to the remote OCF device
|
|
|
- * @param device_uuid unique identity of ocf device,
|
|
|
+ * @param device_uuid unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @param resource_uri uri of ocf resource (eg. /a/light)
|
|
|
* @return
|
|
|
* - true : function call success,
|
|
@@ -84,7 +84,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* request Observing all properties of the resource to the remote OCF device
|
|
|
- * @param device_uuid unique identity of ocf device,
|
|
|
+ * @param device_uuid unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @param resource_uri uri of ocf resource (eg. /a/light)
|
|
|
* @return
|
|
|
* - true : function call success,
|
|
@@ -94,7 +94,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* request Observing only device specific resources to the remote OCF device
|
|
|
- * @param device_uuid unique identity of ocf device,
|
|
|
+ * @param device_uuid unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @return
|
|
|
* - true : function call success,
|
|
|
* - false : function call fail
|
|
@@ -103,7 +103,7 @@ interface IBridgeService {
|
|
|
|
|
|
/**
|
|
|
* request Observing only device specific resources to the remote OCF device
|
|
|
- * @param device_uuid unique identity of ocf device,
|
|
|
+ * @param device_uuid unique identity of ocf device (eg. 15ba3c25-8cdd-41f8-6f9e-fe49105dce0a)
|
|
|
* @return
|
|
|
* - true : function call success,
|
|
|
* - false : function call fail
|