{"id":23069579,"url":"https://github.com/roboticsbrno/esp32-simple-radio","last_synced_at":"2025-04-03T09:46:17.396Z","repository":{"id":179734263,"uuid":"659384765","full_name":"RoboticsBrno/Esp32-simple-radio","owner":"RoboticsBrno","description":"Library that provides very simple radio transmission via BLE GAP, inspired by micro:bit's radio.","archived":false,"fork":false,"pushed_at":"2024-06-30T01:20:56.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-08T23:25:33.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoboticsBrno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-27T18:06:08.000Z","updated_at":"2024-09-30T20:34:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"52a528c9-7596-4546-8ca9-b7fb49a87b83","html_url":"https://github.com/RoboticsBrno/Esp32-simple-radio","commit_stats":null,"previous_names":["roboticsbrno/esp32-simple-radio"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FEsp32-simple-radio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FEsp32-simple-radio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FEsp32-simple-radio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboticsBrno%2FEsp32-simple-radio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoboticsBrno","download_url":"https://codeload.github.com/RoboticsBrno/Esp32-simple-radio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246981136,"owners_count":20863825,"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-12-16T06:16:07.589Z","updated_at":"2025-04-03T09:46:17.362Z","avatar_url":"https://github.com/RoboticsBrno.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Esp32-simple-radio\n\nLibrary that provides very simple radio transmission via BLE GAP, inspired by micro:bit's radio.\n\n## Example\n\nAdd current version to your platformio.ini:\n\n```ini\n...\nlib_deps = https://github.com/RoboticsBrno/Esp32-simple-radio/archive/refs/tags/v1.0.0.zip # or newer version...\n...\n```\n\n```cpp\n#include \"simple_radio.h\"\n\nvoid setup() {\n    SimpleRadio.begin(0);\n\n    SimpleRadio.setOnStringCallback([](std::string str, PacketInfo info) {\n        printf(\"Got string %s rssi %d\\n\", str.c_str(), info.rssi);\n    });\n\n    SimpleRadio.setOnNumberCallback([](double val, PacketInfo info) {\n        printf(\"Got number %f rssi %d\\n\", val, info.rssi);\n    });\n\n    SimpleRadio.setOnKeyValueCallback([](std::string key, double val, PacketInfo info) {\n        printf(\"Got kv %s = %f rssi %d\\n\", key.c_str(), val, info.rssi);\n    });\n\n    char buf[32];\n    for (size_t i = 0; true; ++i) {\n        switch (i % 3) {\n        case 0:\n            snprintf(buf, sizeof(buf), \"iter %d\", i);\n            SimpleRadio.sendString(buf);\n            break;\n        case 1:\n            SimpleRadio.sendNumber(double(i) / 12);\n            break;\n        case 2:\n            SimpleRadio.sendKeyValue(\"num\", i);\n            break;\n        }\n\n        vTaskDelay(pdMS_TO_TICKS(500));\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Fesp32-simple-radio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froboticsbrno%2Fesp32-simple-radio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froboticsbrno%2Fesp32-simple-radio/lists"}