收藏官网首页
查看: 1482|回复: 0

物联网开发与HTML5 Websockets的关系

38

主题

60

帖子

248

积分

中级会员

Rank: 3Rank: 3

积分
248
跳转到指定楼层
楼主
发表于 2016-9-2 16:46:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
免费使用STM32、APP自动代码生成工具
The Internet Of Things
The Internet of Things is a term generally used to refer to a world where a large number physical objects are addressable via the Internet (or similar network). Examples of physical objects in this case could include things such as:
  • Smart buildings
  • Civil engineering structures (bridges, etc)
  • Home appliances,
  • Factories
  • Medical devices
Connecting the world's objects in an interoperable standards based way promises to revolutionise such diverse areas such asgovern   ment, factory automation and farming.

mbed Internet of Things : HTML5 Websockets
mbed is all about prototyping these sorts of things to build working proof-of-concepts. This project shows how to build a system that can quickly deploy Internet of Things sensors using just a smartphone, and how real-time sensor data can be transmitted and visualised using HTML5 web standards.
This project uses the mbed Microcontroller to read sensors and send the real-time sensor data over an IP based network using HTML5 Websockets. Websockets are a new protocol in HTML version 5 which support easy real time data links from any source to any destination, including webpages. More information at Websockets.
This shows how data about real world objects can be accessed by letting microcontrollers connect to the internet using HTML5 web standards, and visualise it using standard clients such as phones or desktop browsers.
Sending the data
There's guides on creating an Internet of Things using different transports, including
  • Internet of things using Wifi
  • Internet of things using Ethernet
Receiving the data
A sensor sending data over websockets needs a websocket server to connect to!
To create your own websocket server, see Websockets-Server
Seeing the results
Once your data has reached a server, you probably want to see it! Websocket-and-Mbed has some example code to help you there, or see the complete application example below.
Demonstration of complete Internet Of Things application
On the Internet-of-Things-Demonstration page, you can see details of a example complete system, including a dashboard for viewing all the sensors in real time.
Code

原文转自:https://developer.mbed.org/cookbook/IOT
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

快速回复 返回顶部 返回列表