Difference between revisions of "Mqtt"

From AMTech WikiDocs
Jump to: navigation, search
Line 1: Line 1:
 
'''Topic Structure'''
 
'''Topic Structure'''
* System topic in the form of prefix/tenant
+
* User-defined topics in the form of tenant/obsType/custom/topic/parts
* User-defined topic in the form of tenant/obsType/customPath
+
 
* Tenant and observation type explicitly required in all topic
 
* Tenant and observation type explicitly required in all topic
 
* Topics created as activityCreator are only for configuration purposes and are saved in DB
 
* Topics created as activityCreator are only for configuration purposes and are saved in DB
Line 7: Line 6:
 
** They do not include tenant in their name (creator topics in the form of /amtech/things/eventsources/<topic>/<levels>)
 
** They do not include tenant in their name (creator topics in the form of /amtech/things/eventsources/<topic>/<levels>)
 
* Topics created as follower or as part of the execution of an activity are not persistd in DB. They are mqtt topics to hold observations
 
* Topics created as follower or as part of the execution of an activity are not persistd in DB. They are mqtt topics to hold observations
 +
* System topics in the form of prefix/tenant (ex. topic for OTA, for new digital twin, etc.)
 
* Core topics
 
* Core topics
 
** Commands : _cmd/<tenant>/<thingtype>/<thingid>/<user-defined>/<path>
 
** Commands : _cmd/<tenant>/<thingtype>/<thingid>/<user-defined>/<path>
 
** Crud : <tenant>/observationresourcecrud/<thingType>/<thingId>/<crudOp>
 
** Crud : <tenant>/observationresourcecrud/<thingType>/<thingId>/<crudOp>
 
** Bridge crud: _bridge/<tenant>/observationresourcecrud/amtechM2mBridge/<bridgeId>/_all/<propId>
 
** Bridge crud: _bridge/<tenant>/observationresourcecrud/amtechM2mBridge/<bridgeId>/_all/<propId>

Revision as of 16:12, 6 October 2020

Topic Structure

  • User-defined topics in the form of tenant/obsType/custom/topic/parts
  • Tenant and observation type explicitly required in all topic
  • Topics created as activityCreator are only for configuration purposes and are saved in DB
    • They are used in reasoners configuration inside activity
    • They do not include tenant in their name (creator topics in the form of /amtech/things/eventsources/<topic>/<levels>)
  • Topics created as follower or as part of the execution of an activity are not persistd in DB. They are mqtt topics to hold observations
  • System topics in the form of prefix/tenant (ex. topic for OTA, for new digital twin, etc.)
  • Core topics
    • Commands : _cmd/<tenant>/<thingtype>/<thingid>/<user-defined>/<path>
    • Crud : <tenant>/observationresourcecrud/<thingType>/<thingId>/<crudOp>
    • Bridge crud: _bridge/<tenant>/observationresourcecrud/amtechM2mBridge/<bridgeId>/_all/<propId>