https://github.com/zuki/raspible
RasPiとiPodTouchをBLEでつないでLチカ(RasPi側)
https://github.com/zuki/raspible
Last synced: 8 days ago
JSON representation
RasPiとiPodTouchをBLEでつないでLチカ(RasPi側)
- Host: GitHub
- URL: https://github.com/zuki/raspible
- Owner: zuki
- Created: 2019-06-28T02:17:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T06:08:45.000Z (almost 7 years ago)
- Last Synced: 2025-07-05T09:42:58.877Z (12 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RasPiとiPod TouchをBLEでつないでLチカ
ソースは[Bluetoothを使って自作iPhoneアプリとRaspberry piでLEDチカらせる](https://qiita.com/kentarohorie/items/b9549af9c71886860866)による。だだし、nodeモジュールのblenoの代わりにpyblenoを使用してpythonで実装。
## 操作方法
### RasPi側
1. ペリフェラルを立ち上げる
```
$ cd /home/pi/examples/ble
$ sudo ./peripheral.py
```
### iPos側
1. 「設定」アプリでBluetoothを有効化
2. `RasPiBLE` アプリを立ち上げる
3. [接続する] ボタンを押してmqtt-clientに接続
4. スイッチのオンオフでLEDがオン・オフするはず
5. [切断する] ボタンを押して切断