{"__v":8,"_id":"5577bd07a042551900b0044c","category":{"__v":2,"_id":"5577bceaa042551900b0044b","pages":["5577bd07a042551900b0044c","55d224ab945e481700afbb79"],"project":"557790abe6063e0d00481466","version":"557790ace6063e0d00481469","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-10T04:28:26.541Z","from_sync":false,"order":9999,"slug":"developers","title":"Developers"},"project":"557790abe6063e0d00481466","user":"5564f227f0f70f0d00a9ab20","version":{"__v":4,"_id":"557790ace6063e0d00481469","project":"557790abe6063e0d00481466","createdAt":"2015-06-10T01:19:40.071Z","releaseDate":"2015-06-10T01:19:40.071Z","categories":["557790ace6063e0d0048146a","5577bceaa042551900b0044b","55d222fa3c74062300aee56e","55db5726b0e9140d00a632ba"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":["56edb7735babe30e009bd82b"],"next":{"pages":[],"description":""},"createdAt":"2015-06-10T04:28:55.044Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"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]","excerpt":"Create new connectors for Gateblu","slug":"connectors","type":"basic","title":"Connectors"}

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]