TimHsuTW
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # QIoT Suite Lite 簡單使用介紹(以mqtt為範例) ![](https://i.imgur.com/uLTmriv.png) ## 建立IoT 應用 1. 登入QIoT Suite Lite,切換頁面到"IoT 應用",點擊"新增IoT應用" ![](https://i.imgur.com/kt7fz36.jpg) 2. 填入IoT應用名稱後點擊"建立" ![](https://i.imgur.com/A0e3urr.jpg) ## 新增IoT 裝置及IoT 裝置資源 1. 建立"IoT 應用"完成後,接著新增"IoT 裝置",點擊"新增IoT 裝置" ![](https://i.imgur.com/EZjnprS.jpg) 2. 填入"IoT 裝置名稱",其他欄位只是方便您管理IoT裝置,不會影響到功能性,可自由選填。完成後點擊"新增" ![](https://i.imgur.com/Vpll9Wm.jpg) 3. 接下來新增"IoT 裝置資源",點擊下圖紅框處,接下來點擊新增資源 ![](https://i.imgur.com/PkfdV07.jpg) ![](https://i.imgur.com/tO7nLeC.jpg) 4. 填入"資源名稱"和"資源Id",系統會依據"**IoT 裝置名稱**"和"**IoT 裝置資源Id**"組合成一組專屬的mqtt topic,其他部分選填不影響功能。完成後點擊新增後點擊關閉 ![](https://i.imgur.com/c6ryvRY.jpg) ![](https://i.imgur.com/pXP24VS.jpg) ## 產生連線資訊檔(resourceinfo.json) 1. 現在要產生連線相關資訊檔(resourceinfo.json),點擊下圖紅框處 ![](https://i.imgur.com/wWeEJsy.jpg) 2. 選擇要使用的通訊協定,此處選擇mqtt為範例,選擇後點擊下一步 ![](https://i.imgur.com/XAsfBqX.jpg) 3. 畫面會顯示所有相關的連線資訊,依據這裡的連線資訊設定mqtt client端,此處將會顯示mqtt broker ip、port、username、password、各個資源的topic ![](https://i.imgur.com/Itnxo0o.jpg) ![](https://i.imgur.com/KnjBG8Y.png) ## 使mqtt.fx模擬軟體進行連線 可參考此篇教學文章設定mqtt client端:[**如何使用 MQTT 連接到 QNAP QIoT Suite Lite?**](https://www.qnap.com/go/how-to/tutorial/article/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-mqtt-%E9%80%A3%E6%8E%A5%E5%88%B0-qnap-qiot-suite-lite/) 可以在此處下載mqtt.fx mqtt client端模擬軟體:[**mqtt.fx**](https://mqttfx.jensd.de/index.php/download) 1. 開啟mqtt.fx 2. 設定mqtt broker連線資訊 ![](https://i.imgur.com/2Hg7WbI.jpg) 3. 進行連線 ![](https://i.imgur.com/U7cIjGa.jpg) 4. 依照連線資訊檔(resourceinfo.json)各個資源提供的Topic進行publish跟subscribe(QOS 2選項不支援),請參考 [**如何使用 MQTT 連接到 QNAP QIoT Suite Lite?**](https://www.qnap.com/go/how-to/tutorial/article/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-mqtt-%E9%80%A3%E6%8E%A5%E5%88%B0-qnap-qiot-suite-lite/) 設定Publish的payload,資料格式須為JSON : `{"value":<data>}`,EX : `{"value":1234}` ![](https://i.imgur.com/BViPr5V.jpg) ![](https://i.imgur.com/j2gfvKQ.jpg) 5. 可在"IoT 應用" > "IoT 裝置"的"IoT 裝置資料日誌"中顯示裝置傳送上來的資料 ![](https://i.imgur.com/0dht5lZ.jpg) ## 使用Dashboard 呈現資料 參考[**如何使用 QIoT Suite Lite 儀表板 (從 v1.1.1 升級到 v1.1.2)?**](https://www.qnap.com/go/how-to/tutorial/article/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-qiot-suite-lite-%E5%84%80%E8%A1%A8%E6%9D%BF-%E5%BE%9E-v1-1-1-%E5%8D%87%E7%B4%9A%E5%88%B0-v1-1-2) 1. 切到儀表板頁面,點擊"編輯" ![](https://i.imgur.com/zmkf0kq.jpg) 2. 點選下圖紅框(1)處新增面板並點選紅框(2)處新增widget ![](https://i.imgur.com/ave9duh.jpg) 3. 選擇您要的 widget 類型(此處以測量為範例),填入相關資訊,在 "值" 欄位選擇您要呈現的 IoT 裝置資源及payload裡解析出來的Json Key (此處範例為剛剛新建的裝置資源: qiotsupported_temperature > value)完成後點擊"儲存" ![](https://i.imgur.com/Axmo7wE.jpg) 7. 點選 "完成編輯" 即完成 ![](https://i.imgur.com/4TgBCvD.jpg) ## 使用Rule 傳送資料至Device 可參考此篇教學文章(準備工作段落):[**如何使用 ESP8266 連線至 QNAP QIoT Suite Lite?**](https://www.qnap.com/go/how-to/tutorial/article/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-esp8266-%E9%80%A3%E7%B7%9A%E8%87%B3-qnap-qiot-suite-lite) 1. 切換頁面至Rule 2. 刪除預設的所有rule ![](https://i.imgur.com/cbXigUV.jpg) 3. 將QBroker out 及 inject拉至白色編輯區中 ![](https://i.imgur.com/5ZeqJcg.jpg) 4. 雙擊設定QBroker out,填入名子及選擇要發送payload IoT裝置資源的目標,QoS及保留選項可依據需求自由選擇 ![](https://i.imgur.com/7QKIdr1.jpg) 5. 雙擊設定inject,有效內容填入JSON格式payload ![](https://i.imgur.com/tB0Y7V7.jpg) 6. 將兩個node連接起來並按下儲存 ![](https://i.imgur.com/7ypUi0Y.jpg) 7. 點擊觸發紐觀看Client端是否有收到 ![](https://i.imgur.com/WkFiLM9.jpg) ![](https://i.imgur.com/HlBIHdk.jpg) ###### tags: `Tutorial`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    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.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully