{"id":11163,"date":"2025-02-04T17:56:48","date_gmt":"2025-02-04T08:56:48","guid":{"rendered":"https:\/\/www.moonmile.net\/blog\/?p=11163"},"modified":"2025-02-04T17:56:48","modified_gmt":"2025-02-04T08:56:48","slug":"github-copilot-%e3%81%a7-ibeacon-%e7%99%ba%e4%bf%a1%e3%83%84%e3%83%bc%e3%83%ab%e3%82%92%e4%bd%9c%e3%82%8c%e3%82%8b%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/11163","title":{"rendered":"GitHub Copilot \u3067 iBeacon \u767a\u4fe1\u30c4\u30fc\u30eb\u3092\u4f5c\u308c\u308b\uff1f"},"content":{"rendered":"\n<p>\u8981\u306f\u300cGitHub Copilot x Python\u300d\u672c\u306e\u5ba3\u4f1d\u8a18\u4e8b\u3067\u3059\u3002\u81ea\u524d\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3060\u304b\u3089\u81ea\u524d\u306e\u672c\u306e\u5ba3\u4f1d\u3092\u3057\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u306f &#8220;\u79c1\u304c&#8221; \u8a70\u3089\u306a\u3044\u306e\u3067\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u5148\u306e\u3068\u3053\u308d\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-amazon wp-block-embed-amazon\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"GitHub Copilot\u00d7Python\u5165\u9580\" type=\"text\/html\" width=\"640\" height=\"550\" frameborder=\"0\" allowfullscreen style=\"max-width:100%\" src=\"https:\/\/read.amazon.com.au\/kp\/card?preview=inline&#038;linkCode=kpd&#038;ref_=k4w_oembed_n0ORMoNSs6dKiG&#038;asin=4296070975&#038;tag=kpembed-20\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u3053\u306e\u66f8\u7c4d\u3067\u306fPython\u3092\u5b66\u3076\u3053\u3068\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u306fGitHub Copilot\u3092\u5b66\u3076\u306e\u304c\u76ee\u7684\u3067\u3059\u3002GitHub Copilot\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6642\u306b\u9069\u3057\u305f\u751f\u6210AI\u3067 Visual Studio Code \u3068 Copilot \u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u3044\u307e\u3059\u3002\u6628\u4eca\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u6642\u306b\u751f\u6210AI\u3092\u4f7f\u3046\uff08ChatGPT\u3068\u304bGemini\u3068\u304b\uff09\u3092\u4f7f\u3046\u3053\u3068\u306f\u666e\u901a\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u3082\u3046\u4e00\u6b69\u9032\u3093\u3067\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u9069\u3057\u305f\u4f7f\u3044\u65b9\u3092\u5b66\u3093\u3067\u3044\u3053\u3046\u3068\u3044\u3046\u306e\u304c\u4e3b\u65e8\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u5b9f\u306f\u30c4\u30fc\u30eb\u306f\u554f\u3044\u307e\u305b\u3093\u3002\u3053\u306e\u672c\u3067\u306fGitHub Copilot\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c Cursor \u3068\u304b\u4ed6\u306e\u30c4\u30fc\u30eb\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u751f\u6210AI\u3092\u4f34\u3063\u3066\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u3059\u308b<\/h2>\n\n\n\n<p>ChatGPT\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u4f7f\u304a\u3046\u3068\u3057\u305f\u3068\u304d\u3001\u771f\u3063\u5148\u306b\u8003\u3048\u308b\u306e\u306f\u300c\u25cb\u25cb\u306e\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u300d\u3068\u3044\u3046\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u751f\u6210\u306e\u4ed5\u65b9\u3067\u3059\u3002\u5b9f\u969b\u3001\u7c21\u5358\u306a\u30b2\u30fc\u30e0\uff08\u30a4\u30f3\u30d9\u30fc\u30c0\u30fc\u3068\u304b\u30d6\u30ed\u30c3\u30af\u5d29\u3057\u3068\u304b\uff09\u306e\u30b3\u30fc\u30c9\u306f\u3001\u3053\u308c\u3060\u3051\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u3082\u7c21\u5358\u306b\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8272\u3092\u4ed8\u3051\u305f\u308a\u3001\u97f3\u304c\u4ed8\u3044\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u304b\u306a\u308a\u306e\u9a5a\u304d\u3092\u899a\u3048\u308b\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u3001\u5b9f\u969b\u306e\u3068\u3053\u308d\u30a4\u30f3\u30d9\u30fc\u30c0\u30fc\u30b2\u30fc\u30e0\u3092\u4f5c\u3063\u305f\u308a\u30d6\u30ed\u30c3\u30af\u5d29\u3057\u3092\u4f5c\u3063\u305f\u308a\u3057\u305f\u3044\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u5f8c\u304c\u7d9a\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306b\u65ad\u3063\u3066\u304a\u304f\u3068\u3001\u304a\u305d\u3089\u304f\u3067\u3059\u304c\u300c\u30b2\u30fc\u30e0\u300d\u306e\u3088\u3046\u306b\u9589\u3058\u3089\u308c\u305f\u74b0\u5883\u306e\u5834\u5408\u306b\u306f\u3001\u3053\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u65b9\u5f0f\u306f\u304b\u306a\u308a\u6709\u52b9\u3067\u3059\u3002\u304a\u305d\u3089\u304f\u3001\u540c\u3058\u30d1\u30bf\u30fc\u30f3\u3067\u30ed\u30fc\u30eb\u30d7\u30ec\u30a4\u30f3\u30b0\u30b2\u30fc\u30e0\u3068\u304b\u304b\u672a\u829d\u5c45\u578b\u306e\u30ae\u30e3\u30eb\u30b2\u30fc\u3068\u304b\u3082\u3044\u3051\u305d\u3046\u3067\u3059\u3002\u5c0f\u5b66\u751f\u5411\u3051\u306e\u3055\u3093\u3059\u3046\u30b2\u30fc\u30e0\u3068\u304b\u3082\u3044\u3051\u305d\u3046\u3067\u3059\u3002\u304a\u305d\u3089\u304f\u3001\u5c0f\u5947\u9e97\u306a\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u3055\u3044\u3068\u3068\u3082\u53ef\u80fd\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u306f\u3044\u308f\u3086\u308b\u5df7\u306b\u3042\u308b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7684\u306a\u3082\u306e\u306b\u5bfe\u3057\u3066\u751f\u6210AI\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u529b\u304c\u975e\u5e38\u306b\u5f37\u3044\u305f\u3081\u3067\u3059\u3002\u3042\u308b\u610f\u5473\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068\u3044\u3046\u3082\u306e\u304c\u65e2\u5b58\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u7d44\u307f\u5408\u308f\u305b\u3084\u3001Web\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff08HTML\u3068CSS\u306e\u7d44\u307f\u5408\u308f\u305b\u3068\u304b\u30a2\u30cb\u30e1\u30fc\u30b7\u30e7\u30f3\u3068\u304b\uff09\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u305f\u304f\u3055\u3093\u7d39\u4ecb\u3055\u308c\u3066\u3044\u3066\u3001\u305d\u308c\u3089\u306e\u30ce\u30a6\u30cf\u30a6\u306e\u84c4\u7a4d\u304c\u65e9\u3044\u304b\u3089\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3057\u3001\u3053\u306e\u624b\u306e\u76ee\u7684\u306b\u3074\u3063\u305f\u308a\u306e\u30e2\u30ce\u304c\u51fa\u3066\u304f\u308b\u5834\u5408\u306f\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3074\u3063\u305f\u308a\u306e\u3082\u306e\u304c\u51fa\u3066\u6765\u306a\u3044\u5834\u5408\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u304b\uff1f\u3072\u305f\u3059\u3089\u751f\u6210AI\u306b\u6e21\u3059\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5de5\u592b\u3057\u3066\u30b3\u30fc\u30c9\u3092\u7df4\u308a\u4e0a\u3052\u3066\u3044\u304f\u65b9\u304c\u3088\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u3072\u3068\u3064\u306e\u65b9\u6cd5\u3068\u3057\u3066\u300c\u4f55\u5ea6\u3082\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u7e70\u308a\u8fd4\u3059\u300d\u3068\u3044\u3046\u306e\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3082\u3046\u5c11\u3057\u30d7\u30ed\u30b0\u30e9\u30de\u3089\u3057\u3044\u624b\u6cd5\u3092\u53d6\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3068\u3044\u3046\u306e\u304c\u4e3b\u65e8\u3067\u3059\u3002\u306a\u306b\u3082\u3001\u5168\u3066\u3092\u751f\u6210AI\u306b\u4efb\u305b\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u751f\u6210AI\u306b\u8db3\u308a\u306a\u3044\u90e8\u5206\u306f\u4eba\u304c\u88dc\u3044\u3001\u9006\u306b\u4eba\u306b\u8db3\u308a\u306a\u3044\u90e8\u5206\uff08\u77e5\u8b58\u3068\u304b\u6642\u9593\u3068\u304b\uff09\u3092\u751f\u6210AI\u3067\u88dc\u308f\u305b\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002\u7aef\u7684\u306b\u8a00\u3048\u3070\u3001\u751f\u6210AI\u3068\u30da\u30a2\u30d7\u30ed\u3092\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">iBeacon \u3092\u767a\u4fe1\u3055\u305b\u308b<\/h2>\n\n\n\n<p>GitHub Copilot \u306e\u7d30\u304b\u3044\u4f7f\u3044\u65b9\u3084Python\u306e\u6587\u6cd5\u306a\u3069\u306f\u5148\u306e\u672c\u306b\u4efb\u305b\u308b\u3068\u3057\u3066\u3001\u3053\u3053\u3067\u306f\u5148\u306b\u9032\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u6ce8\uff09\u6700\u521d\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u304c\u3001Windows \u74b0\u5883\u3067 Python \u3092\u4f7f\u3063\u3066 iBeacon \u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u305d\u3046\u305d\u3046\u3001.NET\u3067\u3082\u3067\u304d\u306a\u304b\u3063\u305f\u3093\u3067\u3059\u3088\u306d\u3002WSL\u3092\u4f7f\u3046\u3068\u3067\u304d\u308b\u3088\u3046\u306a\u3067\u304d\u306a\u3044\u3088\u3046\u306a\u611f\u3058\u3067\u3057\u305f\u304c&#8230;\u3072\u3068\u307e\u305a\u3001\u305d\u308c\u3092\u5fd8\u308c\u3066\u300cWindows \u3067 Python \u3092\u4f7f\u3063\u3066 iBeacon \u3092\u9001\u4fe1\u3057\u3066\u3044\u307f\u3088\u3046\uff01\u300d\u3068\u601d\u3063\u3066\u3001\u4f5c\u308a\u59cb\u3081\u305f\u8a18\u9332\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4eee\u60f3\u74b0\u5883 .venv \u3092\u4f5c\u3063\u3066 vscode \u306b transmit-ibeacon.py \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"269\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1024x269.png\" alt=\"\" class=\"wp-image-11164\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1024x269.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-300x79.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-768x202.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image.png 1495w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u521d\u624b\u3068\u3057\u3066 Copilot \u306b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5165\u308c\u307e\u3059\u3002\u8272\u3005\u8a2d\u8a08\u3057\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u4f5c\u308a\u305f\u3044\u30c4\u30fc\u30eb\u3092\u76f4\u63a5\u5165\u308c\u3066\u3057\u307e\u3046\u306e\u304c\u521d\u624b\u3068\u3057\u3066\u306f\u624b\u3063\u53d6\u308a\u65e9\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u300ciBeacon \u3092\u767a\u4fe1\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3002\u300d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"278\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1-1024x278.png\" alt=\"\" class=\"wp-image-11165\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1-1024x278.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1-300x82.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1-768x209.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-1.png 1434w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u4e2d\u5473\u306f GPT 4o \u306a\u306e\u3067\u7d50\u69cb\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"493\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-2-1024x493.png\" alt=\"\" class=\"wp-image-11166\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-2-1024x493.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-2-300x144.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-2-768x370.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-2.png 1517w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u3053\u308c\u3092\u300c\u540c\u610f\u3059\u308b\u300d\u3092\u62bc\u3057\u3066\u78ba\u5b9a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import time\nimport bluetooth\n\n# iBeacon settings\nuuid = &quot;12345678-1234-1234-1234-123456789abc&quot;\nmajor = 1\nminor = 1\ntx_power = -59\n\n# Create the iBeacon advertisement packet\ndef create_ibeacon_packet(uuid, major, minor, tx_power):\n    prefix = b&#39;\\x02\\x01\\x1a\\x1a\\xff\\x4c\\x00\\x02\\x15&#39;\n    uuid_bytes = bytes.fromhex(uuid.replace(&#39;-&#39;, &#39;&#39;))\n    major_bytes = major.to_bytes(2, byteorder=&#39;big&#39;)\n    minor_bytes = minor.to_bytes(2, byteorder=&#39;big&#39;)\n    tx_power_byte = tx_power.to_bytes(1, byteorder=&#39;big&#39;, signed=True)\n    return prefix + uuid_bytes + major_bytes + minor_bytes + tx_power_byte\n\n# Transmit iBeacon\ndef transmit_ibeacon():\n    ibeacon_packet = create_ibeacon_packet(uuid, major, minor, tx_power)\n    sock = bluetooth.BluetoothSocket(bluetooth.LE_ADVERTISING)\n    sock.bind((&quot;&quot;, 0))\n    sock.send(ibeacon_packet)\n    print(&quot;iBeacon is transmitting...&quot;)\n\n    try:\n        while True:\n            time.sleep(1)\n    except KeyboardInterrupt:\n        sock.close()\n        print(&quot;iBeacon transmission stopped.&quot;)\n\nif __name__ == &quot;__main__&quot;:\n    transmit_ibeacon()<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u306f\u3001\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068 bluetooth \u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7121\u304f\u3066\u3053\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"326\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-3-1024x326.png\" alt=\"\" class=\"wp-image-11168\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-3-1024x326.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-3-300x96.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-3-768x245.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-3.png 1253w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u3069\u3046\u3084\u3089\u3001\u5148\u982d\u306e\u300cimport bluetooth\u300d\u304c\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8db3\u308a\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"266\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-4-1024x266.png\" alt=\"\" class=\"wp-image-11169\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-4-1024x266.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-4-300x78.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-4-768x200.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-4.png 1481w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u3053\u3053\u3067\u300cCopilot \u3092\u4f7f\u7528\u3057\u3066\u4fee\u6b63\u3059\u308b\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u66f8\u7c4d\u306e\u307b\u3046\u3067\u306f\u3001\u3044\u308d\u3044\u308d\u3068\u8a66\u884c\u932f\u8aa4\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u3061\u3083\u3063\u3061\u3083\u3068\u805e\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002\u3060\u3044\u305f\u3044\u3001pip \u30b3\u30de\u30f3\u30c9\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5165\u308c\u308c\u3070\u89e3\u6c7a\u3067\u304d\u308b\u8a71\u306a\u306e\u3067\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"364\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-5-1024x364.png\" alt=\"\" class=\"wp-image-11170\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-5-1024x364.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-5-300x107.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-5-768x273.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-5.png 1492w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u4e88\u60f3\u901a\u308a\u3001pybluez \u3068\u8a00\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5165\u308c\u308c\u3070\u3088\u3055\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>pip install pybluez<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u3092\u4eee\u60f3\u74b0\u5883\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"607\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-6-1024x607.png\" alt=\"\" class=\"wp-image-11171\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-6-1024x607.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-6-300x178.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-6-768x455.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-6.png 1246w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u5b9f\u306f bybluez \u306f Windows \u74b0\u5883\u306b\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093\u3002Linux \u7528\u306e Bluetooth \u30e9\u30a4\u30d6\u30e9\u30ea\u306a\u306e\u3067\u3001Windows \u74b0\u5883\u3067\u306f\u52d5\u304b\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u304a\u305d\u3089\u304f Linux \u74b0\u5883\u3067\u52d5\u304b\u305b\u3070 Copilot \u306e\u63d0\u6848\u901a\u308a\u306b\u52d5\u304f\u7b48\u306a\u306e\u3067\u3059\u304c\u3001\u3044\u307e\u306f Windows \u74b0\u5883\u3067\u52d5\u4f5c\u3055\u305b\u305f\u3044\u306e\u3067\u3001\u3053\u308c\u306f\u4f7f\u3048\u307e\u305b\u3093\u3002\u3055\u3066\u3069\u3046\u3057\u305f\u3082\u306e\u304b\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30f3\u30d7\u30c8\u3067 Copilot \u306b\u983c\u3093\u3067\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>Windows \u74b0\u5883\u3067\u52d5\u304f\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"984\" height=\"482\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-7.png\" alt=\"\" class=\"wp-image-11172\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-7.png 984w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-7-300x147.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-7-768x376.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/a><\/figure>\n\n\n\n<p>\u3053\u308c\u306f\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u306a\u306b\u304b\u5909\u306a import \u3092\u8ffd\u52a0\u3057\u307e\u3059\u304c\u672c\u7b4b\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u4ed5\u65b9\u304c\u306a\u306e\u3067\u3001\u30c1\u30e3\u30c3\u30c8\u3092\u958b\u3044\u3066 pip \u3067\u51fa\u3066\u6765\u305f\u30a8\u30e9\u30fc\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u554f\u3044\u5408\u308f\u305b\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>(.venv) PS H:\\BLE\\py&gt; pip install pybluez\nCollecting pybluez\n  Using cached PyBluez-0.23.tar.gz (97 kB)\n  Preparing metadata (setup.py) ... error\n  error: subprocess-exited-with-error\n\n  \u00d7 python setup.py egg_info did not run successfully.\n  \u2502 exit code: 1\n  \u2570\u2500&gt; [1 lines of output]\n      error in PyBluez setup command: use_2to3 is invalid.\n      [end of output]\n\n  note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: metadata-generation-failed\n\n\u00d7 Encountered error while generating package metadata.\n\u2570\u2500&gt; See above for output.\n\nnote: This is an issue with the package mentioned above, not pip.\nhint: See above for details.\n(.venv) PS H:\\BLE\\py&gt;<\/code><\/pre><\/div>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u306e\u69d8\u5b50<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"1024\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-8-974x1024.png\" alt=\"\" class=\"wp-image-11173\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-8-974x1024.png 974w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-8-285x300.png 285w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-8-768x808.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-8.png 1319w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/a><\/figure>\n\n\n\n<p>\u5b9f\u306f\u3001\u3053\u306e\u30a8\u30e9\u30fc\u3092 Copilot \u306e\u30c1\u30e3\u30c3\u30c8\u3084 ChatGPT \u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u554f\u3044\u5408\u308f\u305b\u3092\u3059\u308b\u306e\u306f\u3088\u304f\u3084\u308a\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306e\u9577\u3044\u30a8\u30e9\u30fc\u3084\u3001\u3084\u3084\u3053\u3057\u3044\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306a\u3069\u3092\u751f\u6210 AI \u304c\u89e3\u6790\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u56de\u7b54\u3067\u306f\u3001setuptools \u3084 wheel \u306e\u66f4\u65b0\u3092\u6c42\u3081\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u306f\u99c4\u76ee\u3067\u3059\u3002\u6700\u5f8c\u306e\u300cpip install bleak\u300d\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3001bleak\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u304b\u3089\u66f8\u304d\u76f4\u3057\u3066\u8cb0\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001bluetooth \u306e\u3068\u3053\u308d\u3092\u76f4\u305b\u3070\u826f\u3055\u305d\u3046\u306a\u306e\u3067\u3001\u3053\u306e\u90e8\u5206\u3067\u300cbleak\u3067\u66f8\u304d\u63db\u3048\u3066\u300d\u3068\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5165\u308c\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"339\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-9-1024x339.png\" alt=\"\" class=\"wp-image-11174\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-9-1024x339.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-9-300x99.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-9-768x255.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-9.png 1216w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u305d\u3046\u3059\u308b\u3068\u3001Bleak \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305f\u5f62\u3067\u66f8\u304d\u63db\u3048\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"222\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-10-1024x222.png\" alt=\"\" class=\"wp-image-11175\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-10-1024x222.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-10-300x65.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-10-768x166.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-10.png 1353w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import asyncio\nfrom bleak import BleakScanner, BleakAdvertiser\n\n# iBeacon settings\nuuid = &quot;12345678-1234-1234-1234-123456789abc&quot;\nmajor = 1\nminor = 1\ntx_power = -59\n\n# Create the iBeacon advertisement packet\ndef create_ibeacon_packet(uuid, major, minor, tx_power):\n    prefix = b&#39;\\x02\\x01\\x1a\\x1a\\xff\\x4c\\x00\\x02\\x15&#39;\n    uuid_bytes = bytes.fromhex(uuid.replace(&#39;-&#39;, &#39;&#39;))\n    major_bytes = major.to_bytes(2, byteorder=&#39;big&#39;)\n    minor_bytes = minor.to_bytes(2, byteorder=&#39;big&#39;)\n    tx_power_byte = tx_power.to_bytes(1, byteorder=&#39;big&#39;, signed=True)\n    return prefix + uuid_bytes + major_bytes + minor_bytes + tx_power_byte\n\n# Transmit iBeacon using Bleak\nasync def transmit_ibeacon():\n    ibeacon_packet = create_ibeacon_packet(uuid, major, minor, tx_power)\n    advertiser = BleakAdvertiser()\n    await advertiser.start(ibeacon_packet)\n    print(&quot;iBeacon is transmitting...&quot;)\n\n    try:\n        while True:\n            await asyncio.sleep(1)\n    except KeyboardInterrupt:\n        await advertiser.stop()\n        print(&quot;iBeacon transmission stopped.&quot;)\n\n\nif __name__ == &quot;__main__&quot;:\n    transmit_ibeacon()<\/code><\/pre><\/div>\n\n\n\n<p>\u3055\u3066\u3001\u3053\u308c\u3092\u52d5\u304b\u3057\u898b\u308b\u3068\u5b9f\u306f\u30a8\u30e9\u30fc\u3067\u52d5\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11-1024x223.png\" alt=\"\" class=\"wp-image-11176\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11-1024x223.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11-300x65.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11-768x167.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11-1536x335.png 1536w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-11.png 1541w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u3053\u308c\u3092 Copilot \u306b\u805e\u304f\u3068 BleakAdvertiser \u81ea\u4f53\u304c\u7121\u3044\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u3064\u307e\u308a\u306f Copilot \u306e\u30cf\u30eb\u30b7\u30cd\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u306d\u3002\u52dd\u624b\u306b\u4f5c\u3063\u305f\uff08\u3042\u308b\u3044\u306f\u3001\u3069\u3053\u304b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff1f\uff09\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"818\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-12-1024x818.png\" alt=\"\" class=\"wp-image-11177\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-12-1024x818.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-12-300x240.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-12-768x614.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-12.png 1305w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u3042\u3089\u305f\u3081\u3066\u3001Copiot \u306b\u5c0b\u306d\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u300cWindows \u74b0\u5883\u3067 Python \u3092\u4f7f\u3063\u3066 iBeacon \u3092\u767a\u4fe1\u3059\u308b\u306b\u306f\uff1f\u300d<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-13-1024x572.png\" alt=\"\" class=\"wp-image-11178\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-13-1024x572.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-13-300x168.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-13-768x429.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-13.png 1350w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u63d0\u6848\u3055\u308c\u305f\u30b3\u30fc\u30c9<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>import pygatt\nimport time\n\n# iBeacon settings\nuuid = &quot;12345678-1234-1234-1234-123456789abc&quot;\nmajor = 1\nminor = 1\ntx_power = -59\n\n# Create the iBeacon advertisement packet\ndef create_ibeacon_packet(uuid, major, minor, tx_power):\n    prefix = b&#39;\\x02\\x01\\x1a\\x1a\\xff\\x4c\\x00\\x02\\x15&#39;\n    uuid_bytes = bytes.fromhex(uuid.replace(&#39;-&#39;, &#39;&#39;))\n    major_bytes = major.to_bytes(2, byteorder=&#39;big&#39;)\n    minor_bytes = minor.to_bytes(2, byteorder=&#39;big&#39;)\n    tx_power_byte = tx_power.to_bytes(1, byteorder=&#39;big&#39;, signed=True)\n    return prefix + uuid_bytes + major_bytes + minor_bytes + tx_power_byte\n\n# Transmit iBeacon using pygatt\ndef transmit_ibeacon():\n    adapter = pygatt.GATTToolBackend()\n    adapter.start()\n    try:\n        ibeacon_packet = create_ibeacon_packet(uuid, major, minor, tx_power)\n        adapter.sendline(&#39;sudo hcitool -i hci0 cmd 0x08 0x0008 &#39; + ibeacon_packet.hex())\n        print(&quot;iBeacon is transmitting...&quot;)\n        while True:\n            time.sleep(1)\n    except KeyboardInterrupt:\n        print(&quot;iBeacon transmission stopped.&quot;)\n    finally:\n        adapter.stop()\n\nif __name__ == &quot;__main__&quot;:\n    transmit_ibeacon()<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u5b9f\u306f\u3053\u308c\u3082\u52d5\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"329\" src=\"https:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-14-1024x329.png\" alt=\"\" class=\"wp-image-11179\" srcset=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-14-1024x329.png 1024w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-14-300x96.png 300w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-14-768x247.png 768w, http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2025\/02\/image-14.png 1378w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>\u63d0\u6848\u3055\u308c\u3066\u3044\u308b pygatt \u306f Linux \u306e BlueZ \u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001Windows \u3067\u306f\u52d5\u304b\u306a\u3044\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u7d50\u8ad6\u7684\u306b\u306f Windows \u74b0\u5883\u304b\u3089 iBeacon \u3092\u767a\u4fe1\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u5225\u306e\u74b0\u5883\u304c\u5fc5\u8981\u3067\u3059\u3002Linux \u3067 hcitool \u3092\u4f7f\u3046\u304b\u3001Android \u3068\u304b\u3092\u4f7f\u3046\u304b\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b M5Stack \u3092\u4f7f\u3063\u305f\u4f8b\u3092\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>M5Stack \u3067 iBeacon \u3092\u98db\u3070\u3059(PlatformIO\u74b0\u5883) | Moonmile Solutions Blog <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/11081\">https:\/\/www.moonmile.net\/blog\/archives\/11081<\/a><\/p>\n\n\n\n<p>\u306a\u306e\u3067\u3001\u3053\u308c\u3060\u3068\u30a2\u30ec\u3060\u304b\u3089\u3001Android \u3067 iBeacon \u3092\u4f5c\u308b\u4f8b\u3092\u7d9a\u304d\u3078\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u306f\u300cGitHub Copilot x Python\u300d\u672c\u306e\u5ba3\u4f1d\u8a18\u4e8b\u3067\u3059\u3002\u81ea\u524d\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3060\u304b\u3089\u81ea\u524d\u306e\u672c\u306e\u5ba3\u4f1d\u3092\u3057\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u5185\u5bb9\u3092\u7d39\u4ecb\u3057\u3066\u3044\u308b\u3060\u3051\u3067\u306f &#8220;\u79c1\u304c&#8221; \u8a70\u3089\u306a\u3044\u306e\u3067\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u5148 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/11163\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-11163","post","type-post","status-publish","format-standard","hentry","category-dev"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=11163"}],"version-history":[{"count":3,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11163\/revisions"}],"predecessor-version":[{"id":11181,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/11163\/revisions\/11181"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=11163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=11163"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=11163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}