{"id":14437157,"url":"https://github.com/ubirch/pxt-ubirch","last_synced_at":"2026-02-02T00:38:49.116Z","repository":{"id":75505030,"uuid":"103318502","full_name":"ubirch/pxt-ubirch","owner":"ubirch","description":"ubirch NB-IoT message module","archived":false,"fork":false,"pushed_at":"2018-04-18T20:22:29.000Z","size":378,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-24T09:36:28.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ubirch.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}},"created_at":"2017-09-12T20:40:56.000Z","updated_at":"2019-07-15T09:12:02.000Z","dependencies_parsed_at":"2023-06-06T16:45:19.743Z","dependency_job_id":null,"html_url":"https://github.com/ubirch/pxt-ubirch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ubirch/pxt-ubirch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubirch%2Fpxt-ubirch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubirch%2Fpxt-ubirch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubirch%2Fpxt-ubirch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubirch%2Fpxt-ubirch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubirch","download_url":"https://codeload.github.com/ubirch/pxt-ubirch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubirch%2Fpxt-ubirch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272254027,"owners_count":24901036,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-08-31T08:00:24.511Z","updated_at":"2026-02-02T00:38:49.087Z","avatar_url":"https://github.com/ubirch.png","language":"TypeScript","funding_links":[],"categories":["编程","🗿 JavaScript and MakeCode"],"sub_categories":["JavaScript 和 MakeCode","🗿 MakeCode Extensions"],"readme":"# ubirch NB-IoT message module\n\nThis is a package for sending signed data messages to the [ubirch](http://ubirch.com) backend.\nIt can be used by the [PXT Calliope mini editor](https://pxt.calliope.cc/). Should also work\nwith PXT for Micro:bit.\n\n## Testing\n\n- Modify `tests.ts` to send packages to your own server.\n- Execute a little server: `nc -vv -ul -p 9090` (Linux, also echos the messages) \n- Compile the test `pxt test` and copy `built/binary.hex` to the Calliope mini.\n\nOn the USB console window you will see this:\n\n```\nTEST START\n!!!!  PACKET \u0026 SIGNATURE TEST\nID BC9AB239\nTEST: create unsigned packet: OK\nTEST: set sign key: OK\nTEST: create signed packet: OK\n!!!!  NETWORK TEST\nTEST: sending hello world: OK\nTEST: sending number (temp): OK\nTEST: sending number (light): OK\nTEST: sending string: OK\nTEST FINISHED OK\n\n``` \n\n\u003e It will take some time to send the messages, as the the nRF51 not the fastest chip for\n\u003e the Ed25519 signature generation.\n\n## Example\n\n### Blocks\n![Example Code](example.png)\n\n### Javascript\n\n```typescript\ninput.onButtonPressed(Button.A, () =\u003e {\n    bc95.send(\n        ubirch.createNumberMessage(\n            \"temperature\",\n            input.temperature()\n        )\n    )\n    if (!(bc95.sendOk())) {\n        basic.showIcon(IconNames.Sad)\n    }\n})\ninput.onButtonPressed(Button.B, () =\u003e {\n    bc95.send(\n        ubirch.createStringMessage(\n            \"info\",\n            control.deviceName()\n        )\n    )\n    if (!(bc95.sendOk())) {\n        basic.showIcon(IconNames.Sad)\n    }\n})\nubirch.setSignKey(\"3bc4b2499d97501aba63b0f6308f8d913bcbdceda853269d6875a06a6432fac77b60882bee2e3f017907ce84e5e1c87f705760fac5877fe0de7c5806c4691f2f\")\nmodem.enableDebug(true)\nbc95.init(\n    SerialPin.C17,\n    SerialPin.C16,\n    BaudRate.BaudRate9600\n)\nbc95.attach(\n    6\n)\nbc95.setServer(\"46.23.86.61\", 9090)\n```\n\n## Meta\n\n- PXT/calliope\n- PXT/microbit\n\nDepends on [pxt-calliope-bc95](https://github.com/calliope-mini/pxt-calliope-bc95).\n\nAuthor: Matthias L. Jugel ([@thinkberg](https://twitter.com/thinkberg))\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubirch%2Fpxt-ubirch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubirch%2Fpxt-ubirch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubirch%2Fpxt-ubirch/lists"}