Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ESP32でWebHook
Search
suzakutakumi
July 08, 2021
Technology
100
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ESP32でWebHook
ESP32からSlackやDiscordにメッセージを送る。
suzakutakumi
July 08, 2021
More Decks by suzakutakumi
See All by suzakutakumi
ピクロス作成の中間発表
suzakutakumi
0
110
しゅみろん
suzakutakumi
0
190
trap-search
suzakutakumi
1
66
Pyramid Makerの作成
suzakutakumi
0
52
マークダウンパーサーの自作
suzakutakumi
0
130
絵文字ジェネレータボットの作成
suzakutakumi
0
170
send_discord
suzakutakumi
0
70
独自ドメインについて
suzakutakumi
0
67
ESP32とAlexaを用いたエアコン制御
suzakutakumi
0
1.4k
Other Decks in Technology
See All in Technology
AIによるクリエイティブ生成を行う上での試行錯誤
plaidtech
PRO
0
150
あるけみー式LTスライド作成術
alchemy1115
1
210
株式会社シーエーシー エンジニア向け会社紹介資料
cac
0
57k
すぐできる衛星通信対応 あとは山奥に行くだけ
tatetate55
0
130
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
5
25k
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
610
GoにおけるFFIのこれまでとこれから
goccy
5
3.4k
Amazon Quick on DesktopがIAM Identity Centerで動かない理由
yukiogawa
0
190
20260912_スクフェス三河
kgnkhkr
0
380
MCPをつなげて作る組織横断のAIエージェント基盤(の開発工程)
tsubakimoto_s
0
130
The Agent Builder Loop from Daily Work to OSS
minorun365
PRO
3
200
【技術的負債conf】事業成長に伴う技術的負債の説明責任とAIによるモニタリング、認知的負債について
i35_267
2
1.6k
Featured
See All Featured
How to make the Groovebox
asonas
2
2.4k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
280
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
230
Exploring anti-patterns in Rails
aemeredith
4
510
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
450
Optimising Largest Contentful Paint
csswizardry
37
4k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
The Pragmatic Product Professional
lauravandoore
37
7.4k
Transcript
ESP32でWebhook Zli ・ LOCAL 学生部 合同 LT 会 2021
自己紹介 名前 : 朱雀 匠 所属 : 会津大学 B1 ・
Zli REMs PandD ARC ・ GeekDojoSA やってること ・人工知能製作 ・ゲーム製作 ・マイコン ・ Bot etc…
目的 現在、部室の入退室をスマホ等から入力してる たまに忘れる 部室内でボタンを押すだけなら楽
Webhookとは http 通信で Discord や Slack などと簡単に連携できる 間違ったこと言うと怖い
ESP32とは 簡単に Web 通信や Bluetooth が使えるマイコン Arduino 互換の ESP32 を使用
WebhookのURLを準備する(1/2) サーバ設定から連携サービスのウェブフックを選択する
WebhookのURLを準備する(2/2) 新しいウェブフックを押して、 Webhook を用意する URL をコピーする
Pythonで試す import requests requests.post('WebhookのURL',data={"content":"Hello World"}) これだけで、 Hello World が出せる
ESP32でやろうとしたが... USB が認識しない
ESP32からWebhookしてみる 送るテキストを用意する String cont = "{\"content\": \"" + mes +
"\"}"; discord.com の 443 ポートに接続する client.connect("discord.com", 443) そして、次の POST リクエストを送る (URL= コピーした URL の /api/webhooks/... の部分 ) client.println("POST " + URL + " HTTP/1.1"); client.println("Content-Length: " + String(cont.length())); client.println("Content-Type: application/json"); client.println("Host: discord.com"); client.println("Accept: */*"); client.println("Connection: close"); client.println(); client.println(cont);
表示できた!
今後は ・ボディを 3D プリンターで作りたい ・入退室を管理するようにボタンを 2,3 つにしたい