歡迎來到 MOPCON 2019 共筆
會場 wifi-SSID: mopcon-2019
會場 wifi-PASSWD: mopcon-2019
MOPCON 2019
從這開始
從選擇 IoT 開始 - ESP8266
決定架構 - 把 IoT 設定為 AP Mode(Server)
決定架構 - 把 IoT 設為 Client
user <--> server <--> IoT(Client)
決定架構 - Client 也可雙向連線
IoT 連線需求
相關的問題可以搜尋「小米」
Arduino 範例程式
Arduino - 使用 SmartConfig 設定 WiFi
SmartConfig 會自動把手機裡面的連線資訊傳送到 IoT,而 IoT 就會自動存入該連線資訊裡面的使用者設定。
原理是算 UDP 的封包長度,因此 APP 是 (Cordova + Pluging)
Arduino - SSL 加密 BearSSL::setFingerprint
Hoyo 的選擇? Socket Server
講者使用的程式語言是 PHP
框架: Workerman
在開發過程中,因為 IoT 的 socket 通訊機制跟 WebSocket 是不同的,但因為為了開發上測試的方便,也可以先用 WebSocket 來測試,後續再轉成 IoT 用的 socket 來去實現 IoT 的功能。
IoT <–––-> Server
port: 3000
port: 3001
Hoyo 怎麼做?Web - 前後端分離
情境 - 將單一或多個動作組成 HTTP API
觸發情境的方法
智能音箱 & 語音助理
決定架構 - 智能音箱串接
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing