{"id":16883339,"url":"https://github.com/hardillb/mqtt2ble","last_synced_at":"2025-04-11T11:51:38.264Z","repository":{"id":35560155,"uuid":"39831985","full_name":"hardillb/mqtt2ble","owner":"hardillb","description":"A way to bridge MQTT topics to BLE Gatt characteristics","archived":false,"fork":false,"pushed_at":"2016-12-13T13:50:14.000Z","size":9,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T09:45:51.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hardillb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-28T12:14:07.000Z","updated_at":"2024-05-23T21:36:15.000Z","dependencies_parsed_at":"2022-09-18T00:22:05.192Z","dependency_job_id":null,"html_url":"https://github.com/hardillb/mqtt2ble","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fmqtt2ble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fmqtt2ble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fmqtt2ble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardillb%2Fmqtt2ble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardillb","download_url":"https://codeload.github.com/hardillb/mqtt2ble/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248390436,"owners_count":21095795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T16:11:18.117Z","updated_at":"2025-04-11T11:51:38.221Z","avatar_url":"https://github.com/hardillb.png","language":"JavaScript","funding_links":[],"categories":["Interfaces"],"sub_categories":["Misc"],"readme":"MQTT2BLE\n----------\n\nA way to bridge MQTT topics to BLE Gatt characteristics \n\nrun:\n    node index.js -c config.js\n\nWhere config.js looks like this:\n\n    module.exports = {\n      broker: \"mqtt://localhost\",\n      topic: \"some/topic\"\n    } \n\n\nThe primary serivce UUID is\n\n   ba42561bb1d2440a8d040cefb43faece\n\nand the topic charactristic is\n\n   6bcb06e2747542a9a62a54a1f3ce11e6\n\nBackground\n-----------\n\nThere is a blog post that describes how I built this code here:\nhttp://www.hardill.me.uk/wordpress/2015/07/28/building-bluetooth-le-devices/\n\nAnd another post about building a simple Android App to work with it here:\nhttp://www.hardill.me.uk/wordpress/2015/08/11/mqtt2ble-android-test-app/\n\n\nKnown issues\n-------------\n\nYou have to be careful that the payload fits in the MTU\n\n#### Running without root/sudo\n\nRun the following command in the directory you ran ```npm install``` from:\n\n```sh\nfind -path '*bleno*Release/hci-ble' -exec sudo setcap cap_net_raw+eip '{}' \\;\n```\n\nThis grants bleno's ```hci-ble``` binary ```cap_net_raw``` privileges, so it can start/stop BLE advertising.\n\n__Note:__ The above command requires ```setcap``` to be installed, it can be installed using the following:\n\n * apt: ```sudo apt-get install libcap2-bin```\n * yum: ```su -c \\'yum install libcap2-bin\\'```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fmqtt2ble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardillb%2Fmqtt2ble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardillb%2Fmqtt2ble/lists"}