{"_id":"5577bd07a042551900b0044c","createdAt":"2015-06-10T04:28:55.044Z","isReference":false,"order":0,"slug":"connectors","title":"Connectors","updates":["56edb7735babe30e009bd82b"],"user":"5564f227f0f70f0d00a9ab20","category":"5577bceaa042551900b0044b","hidden":false,"project":"557790abe6063e0d00481466","sync_unique":"","body":"Creating a new connector is easy, we have created a [generator](https://github.com/octoblu/generator-meshblu-connector) to help you quickly create a skeleton application.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"npm install -g yo generator-meshblu-connector meshblu-util\\n\\nmkdir my-cool-connector\\ncd my-cool-connector\\n\\nyo meshblu-connector\\n\\nmeshblu-util register > meshblu.json\\nmeshblu-util claim\\n\\nnpm start\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\nOnce you've generated your connector, register it with Meshblu, claim it on Octoblu, and enjoy!\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Debug\"\n}\n[/block]\nGateblu uses the [debug](https://github.com/visionmedia/debug) module. To see debug output for a particular connector:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"cd {gateblu_dir}/devices/{device-uuid}\\nDEBUG=gateblu*,meshblu* npm start\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","link_external":false,"link_url":"","version":"557790ace6063e0d00481469","__v":8,"api":{"params":[],"results":{"codes":[]},"settings":"","url":"","auth":"required"},"excerpt":"Create new connectors for Gateblu","githubsync":"","type":"basic","childrenPages":[]}

Connectors

Create new connectors for Gateblu

Creating a new connector is easy, we have created a [generator](https://github.com/octoblu/generator-meshblu-connector) to help you quickly create a skeleton application. [block:code] { "codes": [ { "code": "npm install -g yo generator-meshblu-connector meshblu-util\n\nmkdir my-cool-connector\ncd my-cool-connector\n\nyo meshblu-connector\n\nmeshblu-util register > meshblu.json\nmeshblu-util claim\n\nnpm start", "language": "shell" } ] } [/block] Once you've generated your connector, register it with Meshblu, claim it on Octoblu, and enjoy! [block:api-header] { "type": "basic", "title": "Debug" } [/block] Gateblu uses the [debug](https://github.com/visionmedia/debug) module. To see debug output for a particular connector: [block:code] { "codes": [ { "code": "cd {gateblu_dir}/devices/{device-uuid}\nDEBUG=gateblu*,meshblu* npm start", "language": "shell" } ] } [/block]