{"id":19097039,"url":"https://github.com/mascii/esp32-beebottle","last_synced_at":"2026-05-07T19:03:04.624Z","repository":{"id":100323046,"uuid":"133162426","full_name":"mascii/esp32-beebottle","owner":"mascii","description":"ESP32 で MQTT over TLS (Port: 8883) を用いて Beebottle に繋ぐテスト","archived":false,"fork":false,"pushed_at":"2020-01-03T10:13:41.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T08:59:48.007Z","etag":null,"topics":["arduino","esp32","mqtt"],"latest_commit_sha":null,"homepage":"https://qiita.com/mascii/items/1db06be0950a47e6c720","language":"HTML","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/mascii.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-12T16:15:33.000Z","updated_at":"2021-04-20T22:45:30.000Z","dependencies_parsed_at":"2023-05-13T18:45:31.628Z","dependency_job_id":null,"html_url":"https://github.com/mascii/esp32-beebottle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mascii/esp32-beebottle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascii%2Fesp32-beebottle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascii%2Fesp32-beebottle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascii%2Fesp32-beebottle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascii%2Fesp32-beebottle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mascii","download_url":"https://codeload.github.com/mascii/esp32-beebottle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mascii%2Fesp32-beebottle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32751758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["arduino","esp32","mqtt"],"created_at":"2024-11-09T03:38:34.435Z","updated_at":"2026-05-07T19:03:04.596Z","avatar_url":"https://github.com/mascii.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp32-beebottle\n## 概要\nESP32 で MQTT over TLS (Port: 8883) を用いて Beebottle に繋ぐテスト\nhttps://qiita.com/mascii/items/1db06be0950a47e6c720\n\n## このリポジトリ内のファイルの説明\n* esp32-beebottle.ino\n  * Arduino IDE スケッチ\n    * Requirement\n      * [knolleary/pubsubclient](https://github.com/knolleary/pubsubclient)\n      * [bblanchon/ArduinoJson](https://github.com/bblanchon/ArduinoJson)\n* config_sample.h\n  * config.h のテンプレート\n* convcert.sh\n  * `bash convcert.sh mqtt.beebotte.com.pem`\n    * certificate.h が作成されます\n* convcert.js\n  * `node convcert mqtt.beebotte.com.pem`\n    * certificate.h が作成されます\n  * convcert.html からも利用されています\n* convcert.html\n  * ブラウザでpemファイルを変換する(Bash, Node.jsがない環境の方向け)\n  * スタイルシートには[Milligram](https://milligram.io/)を使っております\n\n## 作成する必要があるファイル\n* config.h\n  * config_sample.h をベースにWiFiアクセスポイントやBeebotteの設定を記入\n  * `password` にはハッシュ化した値を入力することを推奨 ([ESP32のArduinoスケッチにWi-Fiのパスワードを平文で書くのはやめよう！](https://qiita.com/mascii/items/bbee7b7bff9cf5a2f833))\n* certificate.h\n  * CA証明書\n  * mqtt.beebotte.com.pem を変換して作成\n    * `https://beebotte.com/certs/mqtt.beebotte.com.pem` からダウンロード\n\n## 動作テスト\n```\ncurl -d '{\"data\":\"led_on\"}' -H \"Content-Type: application/json\" -X POST \\\n 'https://api.beebotte.com/v1/data/publish/(channel)/(resource)?token=token_xxxxxxxxxxxxxxxx'\n```\n\n## トラブルシューティング\n証明書の確認がうまくいっていない可能性がある場合は `#include \"certificate.h\"` と `wifiClient.setCACert(test_ca_cert);` をコメントアウトして動作確認する\n\n# 参考資料\n[IFTTTのトリガーおよびアクションをESP8266で実行する](https://qiita.com/mayfair/items/e761c788a9d8787bc610)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmascii%2Fesp32-beebottle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmascii%2Fesp32-beebottle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmascii%2Fesp32-beebottle/lists"}