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
xxxxxxxxxx
物聯網 Lab2
物聯網目錄:
感測器資料
達成目標
基本功能:
版面設計
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →程式設計
實際畫面
顯示位置於 Google
達成目標
基本功能:
額外功能:
版面設計
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →與 Lab1 類似,這邊設定
web_send
端點為/MY_LOC
,web_get
端點為/SERVER_LOC
,前者負責POST
,後者負責GET
程式設計
多屬性需要
&
來分隔,在此為兩個屬性lat=xxx&lon=xxx
顯示地圖的部分可以參考 android intent,範例是使用經緯度搜尋,這邊使用經緯度加上縮放
獲取 server 位置需要
split
得到陣列,再分別記錄起來傳送給 server 與顯示自己位置:

獲取 server 位置與顯示:

Node-RED 拉出以下所示
http-in
:分別為POST
與GET
,也分別對應/MY_LOC
與SERVER_LOC
function
的MY_LOC
:單純把傳給 server 的內容再打包回來function
的SERVER_LOC
:固定回傳一個定點,在此設計為25.040288, 121.512160
(總統府)實際畫面
自己位置


server 位置

