DZone
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
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Languages
  4. 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 · Interview
Like (0)
Save
Tweet
Share
7.63K 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

  • Introduction to Container Orchestration
  • mTLS Everywere
  • Getting a Private SSL Certificate Free of Cost
  • Distributed Tracing: A Full Guide

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • 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: