XML_SubscribeEvent

SubscribeEvent message in XML format

<SubscribeEvent version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema" >
  <heartbeat>
    <!--optional, xs:integer, heartbeat interval, unit: second, the default value is 30s-->
  </heartbeat>
  <eventMode>
    <!--required, xs:string, "all"-upload all alarms/events, "list"-upload specified alarm/event-->
  </eventMode>
  <EventList>
    <Event><!--uploading mode of specified alarm/event, this node exists only when eventMode is "list"-->
      <type>
        <!--required, xs:string, alarm/event types, which are obtained from the capability, refer to Alarm/Event Types for Subscription for its values-->
      </type>
      <minorAlarm>
        <!--opt, xs:string, minor alarm type: "0x400,0x401,0x402,0x403", see details in Access Control Event Type. This node is required when type is "AccessControllerEvent"-->
      </minorAlarm>
      <minorException>
        <!--opt, xs:string, minor exception type: "0x400,0x401,0x402,0x403", see details in Access Control Event Type. This node is required when type is "AccessControllerEvent"-->
      </minorException>
      <minorOperation>
        <!--opt, xs:string, minor operation type: "0x400,0x401,0x402,0x403", see details in Access Control Event Type. This node is required when type is "AccessControllerEvent"-->
      </minorOperation>
      <minorEvent>
        <!--opt, xs:string, minor event type: "0x01,0x02,0x03,0x04", see details in Access Control Event Type. This node is required when type is "AccessControllerEvent"-->
      </minorEvent>
      <pictureURLType>
        <!--opt, xs:string, alarm picture format: "binary"-binary, "localURL"-device local URL, "cloudStorageURL"-cloud storage URL-->
      </pictureURLType>
    </Event>
  </EventList>
  <channels>
        <!--optional, xs:string, event linked channel information, and multiple channels can be linked, each channel is separated by comma, e.g., "1,2,3,4…"-->
      </channels>
  <channels>
    <!--optional, xs:string, specify channels (each channel is separated by comma, e.g., "1,2,3,4…") to be armed, this node does not exist if you want to arm all channels, and if this node exists, the sub node <channels> in the node <Event> is invalid-->
  </channels>
  <identityKey max="64"/>
  <!--opt, xs: string, interaction command of subscription, supports subscribing comparison results of face picture library (importing with this command), the maximum length is 64-->
</SubscribeEvent>