self.create

Group Create Action

A group is created with do action self.createThe group create action has the following properties. 

Field Name               

Type                           

Description

provision

Boolean

(Optional) Indicates that the group is to be provisioned automatically after being created (this equates to a self.provision action). Triggers self.provision if True.

The default is False.

desc

String

(Optional) Group description.

implementation

any

(Optional) implementation data as received from the impl object in the feedback channel.

See Edge Server Replacement for more information.

members

List of member topics

(Optional) Can be managed later with add, remove.

Example:

[
 “glp/0/SID/rq/dev/lon/b2/if/light/0",
 "glp/0/SID/rq/grp/2"
]

Example

You create a group using the self.create action of the group do topic.  The following example creates a group with one member:

glp/0/{SID}/rq/grp/{Handle}/do                                                                      

{
     action: "self.create",
     args: {
          members: [ "glp/0/site-A/rq/dev/lon/b2/if/sensor/3" ]
     }

}