- Notifications
You must be signed in to change notification settings - Fork1
IoT: API service using gin-gonic library combination with Arduino sensor value controlled by gobot library
License
NotificationsYou must be signed in to change notification settings
kemokemo/IoT-API-Sample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
これは、以下の特徴をもったシステムのモック実装です。
- Arduinoに接続したセンサーをGobotライブラリを用いて読み取る
- gin-gonicライブラリを用いたREST APIサービスを作る
- センサー読み取り値をREST APIで公開する(JSON over HTTP)
Qiitaの「Gobotの招きにあひて、徒然なるままにArduinoとRaspberry PiでIoTっぽいことをやってみるなり」という記事との連動リポジトリとなっております。
- api
- gin-gonicを使ったAPIサービスのサンプル
- sample-files
sensor-api
に関連したJSONデータのサンプル
- sensor
- gobotを使ってArduinoのセンサー値を読み取るサンプル
- sensor-api
- gobotでのセンサー読み取り値を、gin-gonicのAPIサービスと組み合わせたサンプル
- temp-sensor
- Arduinoの
A0
に温度センサーLM35DZ
をつけて温度を読み取るサンプル
- Arduinoの