Difference between revisions of "Edge Configuration"

From AMTech WikiDocs
Jump to: navigation, search
Line 4: Line 4:
 
<syntaxhighlight lang="jsonld">
 
<syntaxhighlight lang="jsonld">
 
{
 
{
    // Text to be assigned to M2MBridges description property
 
 
     "description": "AMTech M2M Bridge",  
 
     "description": "AMTech M2M Bridge",  
    // If the description property will be assigned to M2MBridge's linked things
 
 
     "description:children" : true,
 
     "description:children" : true,
     "dap":{
+
     "dap":{  
        // Amtech IoT DAP ur
+
 
         "dapUrl": "https://dap.amtech.mx",     
 
         "dapUrl": "https://dap.amtech.mx",     
        // userid for the m2mBridge instance bridgeId
 
 
         "userId": "xxxxxxx@amtech.mx",
 
         "userId": "xxxxxxx@amtech.mx",
        // tenant where bridge been configured     
 
 
         "tenant" : "xxxxxxx",   
 
         "tenant" : "xxxxxxx",   
        // m2mBridge userId password 
 
 
         "password" :"xxxxxxxx"
 
         "password" :"xxxxxxxx"
 
     },
 
     },
    // M2MBridge instance id to be cloned
 
 
     "templateId":"m2mCreator:m2mBridge",
 
     "templateId":"m2mCreator:m2mBridge",
    // Prefix to add to the unique M2MBridge identifier, the mac address of the device is use as unique id
 
    // In absence of the prefix just the mac address is used as identifier
 
 
     "bridgeIdPrefix":"tienda1",       
 
     "bridgeIdPrefix":"tienda1",       
    // wkt location to set m2mBridge location overrides address
 
 
     "location": "{\"wkt\":\"POINT(-99.17125583 19.40501031)\",\"sContext\":\"geo\"}",   
 
     "location": "{\"wkt\":\"POINT(-99.17125583 19.40501031)\",\"sContext\":\"geo\"}",   
    // if the location property will be assigned to M2MBridge's linked things
 
 
     "location:children" : true,
 
     "location:children" : true,
    // Address to be used to get m2mBridge's location
 
 
     "address" :{  
 
     "address" :{  
 
         "country" : "usa",
 
         "country" : "usa",
Line 36: Line 24:
 
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
*"description": "AMTech M2M Bridge" ;Text to be assigned to M2MBridges description property
 +
*"description:children" : true, ;If the description property will be assigned to M2MBridge's linked things
 +
*"dapUrl": "https://dap.amtech.mx";Amtech IoT DAP ur
 +
*"userId": "xxxxxxx@amtech.mx", ;userid for the m2mBridge instance bridgeId
 +
*"tenant" : "xxxxxxx", ;tenant where bridge been configured 
 +
*"password" :"xxxxxxxx" ;m2mBridge userId password
 +
*"templateId":"m2mCreator:m2mBridge", ;// M2MBridge instance id to be cloned
 +
*"bridgeIdPrefix":"tienda1", ;Prefix to add to the unique M2MBridge identifier, the mac address of the device is use as unique id, In absence of the prefix just the mac address is used as identifier     
 +
"location": "{\"wkt\":\"POINT(-99.17125583 19.40501031)\",\"sContext\":\"geo\"}",;wkt location to set m2mBridge location overrides address 
 +
*"location:children" : true,;// if the location property will be assigned to M2MBridge's linked things
 +
"address" ;Address to be used to get m2mBridge's location

Revision as of 13:36, 30 May 2016

Edge

bridgeConfig.json located at M2MBridge.js directory

{
    "description": "AMTech M2M Bridge", 
    "description:children" : true,
    "dap":{   
        "dapUrl": "https://dap.amtech.mx",     
        "userId": "xxxxxxx@amtech.mx",
        "tenant" : "xxxxxxx",  
        "password" :"xxxxxxxx"
    },
    "templateId":"m2mCreator:m2mBridge",
    "bridgeIdPrefix":"tienda1",       
    "location": "{\"wkt\":\"POINT(-99.17125583 19.40501031)\",\"sContext\":\"geo\"}",  
    "location:children" : true,
    "address" :{				 
        "country" : "usa",
        "city": "Las Vegas",
        "road": "Las Vegas Boulevard South",
        "number":"3960"
    },
}
  • "description": "AMTech M2M Bridge" ;Text to be assigned to M2MBridges description property
  • "description:children" : true, ;If the description property will be assigned to M2MBridge's linked things
  • "dapUrl": "https://dap.amtech.mx";Amtech IoT DAP ur
  • "userId": "xxxxxxx@amtech.mx", ;userid for the m2mBridge instance bridgeId
  • "tenant" : "xxxxxxx", ;tenant where bridge been configured
  • "password" :"xxxxxxxx" ;m2mBridge userId password
  • "templateId":"m2mCreator:m2mBridge", ;// M2MBridge instance id to be cloned
  • "bridgeIdPrefix":"tienda1", ;Prefix to add to the unique M2MBridge identifier, the mac address of the device is use as unique id, In absence of the prefix just the mac address is used as identifier

"location": "{\"wkt\":\"POINT(-99.17125583 19.40501031)\",\"sContext\":\"geo\"}",;wkt location to set m2mBridge location overrides address

  • "location:children" : true,;// if the location property will be assigned to M2MBridge's linked things

"address" ;Address to be used to get m2mBridge's location