Skip to Content
Node.js物聯網裝置開發
book

Node.js物聯網裝置開發

by Patrick Mulder, Kelsey Breseman
August 2017
Intermediate to advanced
272 pages
5h 32m
Chinese
GoTop Information, Inc.
Content preview from Node.js物聯網裝置開發
藍牙程式庫
|
211
BlueIOT
BlueIOT 模組的核心是 BlueGiga BLE113,見圖 13-7
13-7 來自 fab-lab.eu BlueIOT 開發板(到 tindie.com 購得)
與其他解決方案相比,這個模組有著底下這些優點:
BlueIOT 的體積非常迷你,可由小小的鈕扣電池供電,其睡眠狀態所耗用的電流小
1μA
採用通過 FCC ∕藍牙認證的 BLE 模組,若你之後想要開發自己的 BLE 產品,將可
省下大把時間與花費。
模組帶有 ATmega328P 微控制器晶片,可使用 Arduino 工具鏈來開發程式。
可經由 OTA 方式更新模組,可使用 bgscript 腳本語言設定連線組態,有助於分離應
用程式邏輯與通訊邏輯,也能降低主處理器的負擔。
藍牙程式庫
現在,介紹完硬體方面,該是時候討論藍牙軟體部分的開發策略。
Arduino
Arduino 提供了不錯的程式庫,讓我們能自由操控藍牙功能與微控制器的裡裡外外。大
部分的識別碼都能以位元組陣列表示,然後便能把 Arduino 函式附加到藍牙協定。
212
|
第十三章 藍牙無線傳輸
請看底下的程式範例,採用 Redbear Duo,建構藍牙 Beacon
// redbear_beacon.ino ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

金融人工智能:用Python实现AI量化交易

金融人工智能:用Python实现AI量化交易

Yves Hilpisch
快学熟用D3

快学熟用D3

Philipp K. Janert

Publisher Resources

ISBN: 9789864764594