Skip to content
Snippets Groups Projects

Keti loc update

Merged Martin MIAO requested to merge KETI_LOC_UPDATE into master
+ 610
50
Compare changes
  • Side-by-side
  • Inline
Files
@@ -441,6 +441,7 @@ module OneM2M_Functions {
@@ -441,6 +441,7 @@ module OneM2M_Functions {
* @verdict
* @verdict
*/
*/
function f_getCreateRequestPrimitive(in ResourceType p_resourceType, template RequestPrimitive p_request, integer p_parentIndex) runs on CseTester return RequestPrimitive {
function f_getCreateRequestPrimitive(in ResourceType p_resourceType, template RequestPrimitive p_request, integer p_parentIndex) runs on CseTester return RequestPrimitive {
 
var integer p_locresourceIndex := p_parentIndex;
p_request.from_ := f_getOriginator(p_parentIndex);
p_request.from_ := f_getOriginator(p_parentIndex);
@@ -452,6 +453,14 @@ module OneM2M_Functions {
@@ -452,6 +453,14 @@ module OneM2M_Functions {
if (p_resourceType == int9) {//group
if (p_resourceType == int9) {//group
p_request.primitiveContent.any_1[0].Group_optional.memberIDs := {f_getResourceAddress(p_parentIndex)};
p_request.primitiveContent.any_1[0].Group_optional.memberIDs := {f_getResourceAddress(p_parentIndex)};
}
}
 
//@Martin
 
if(p_resourceType == int3){//container
 
//when a container is created by hosting cse for storing location information, the container is seen as a location container
 
if(PX_IS_LOC_CONTAINER){
 
p_request.primitiveContent.any_1[0].Container_optional.locationID := f_getResourceId(vc_resourcesList[p_locresourceIndex].resource);//resourceID of the locationPolicy
 
}
 
}
 
if (p_resourceType == int15) {//pollingChannel
if (p_resourceType == int15) {//pollingChannel
p_request.from_ := vc_aeAux.aE_ID;
p_request.from_ := vc_aeAux.aE_ID;
Loading