DZone
IoT Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > IoT Zone > Building the Internet of Things: HTML5 for Microcontrollers

Building the Internet of Things: HTML5 for Microcontrollers

John Esposito user avatar by
John Esposito
·
Oct. 25, 11 · IoT Zone · Interview
Like (0)
Save
Tweet
7.44K Views

Join the DZone community and get the full member experience.

Join For Free

What's one basic, practical problem with an Internet of Things?

It's not an Internet if its protocols are proprietary. And things, to be inter-netted, require bi-directional communication.

But Websockets enables bi-directional communication and is part of the W3C-produced HTML5 protocol.

So why not let microcontrollers talk to the Internet via Websockets?

Simple idea. Now here's a real-world demo from mbed sending data via Websockets in JSON format. An HTML5 Canvas element can then easily read and display the data in any modern browser.

Check out a 2.6-minute video overview:


This example uses an mbed microcontroller and an mbed server, so the C/C++ code obviously won't run unless you own their particular commercial device. And you might want to look at mbed's websockets server (written in Java) to peer a little more into how the system actually works.

But you get the idea, and it's a cool one.

HTML Internet (web browser)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Autowiring in Spring
  • Challenges to Designing Data Pipelines at Scale
  • Why Is Software Integration Important for Business?
  • Which JVM Version Is the Fastest?

Comments

IoT Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo