https://github.com/zuki/raspimqtt
RasPiとiPodTouchをMQTTでつないでLチカ(RasPi側)
https://github.com/zuki/raspimqtt
Last synced: 8 months ago
JSON representation
RasPiとiPodTouchをMQTTでつないでLチカ(RasPi側)
- Host: GitHub
- URL: https://github.com/zuki/raspimqtt
- Owner: zuki
- Created: 2019-06-28T02:19:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-28T02:30:35.000Z (almost 7 years ago)
- Last Synced: 2024-12-27T13:10:18.751Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RasPiとiPod TouchをMQTTでつないでLチカ
ソースは[\[GUIDE\] Communicate between iOS and Raspberry Pi using MQTT](https://www.raspberrypi.org/forums/viewtopic.php?f=37&t=196010&hilit=bluetooth+iOS&sid=4ae853ce600e4f9a88a5892f3ae83aeb)による
## 操作方法
### RasPi側
1. mosquiito が立ち上がっていること(serviceで立ち上がっているはず)
```bash
$ sudo service mosquiito status
$ sudo service mosquiito start # 立ち上がってない場合
```
2. mosquittoクライアントを立ち上げる
```
$ cd /home/pi/examples/mqtt
$ ./mqtt-client.py
```
### iPos側
1. WiFi接続
2. `RaspiOperator` アプリを立ち上げる
3. [接続] ボタンを押してmqtt-clientに接続
4. スイッチのオンオフでLEDがオン・オフするはず
5. [切断] ボタンを押して切断