Skip to Content
IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK
book

IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK

by Peter Hoddie, Lizzie Prader
June 2020
Intermediate to advanced
622 pages
10h 31m
English
Apress
Content preview from IoT Development for ESP32 and ESP8266 with JavaScript: A Practical Guide to XS and the Moddable SDK
© Peter Hoddie and Lizzie Prader 2020
P. Hoddie, L. PraderIoT Development for ESP32 and ESP8266 with JavaScripthttps://doi.org/10.1007/978-1-4842-5070-9_11

11. Adding Native Code

Peter Hoddie1  and Lizzie Prader1
(1)
Menlo Park, CA, USA
 

There are times when JavaScript isn’t the best language to use to implement parts of your IoT product. Fortunately, you don’t need to choose either JavaScript or C (or C++) to build your product: you can choose both. XS in C is a low-level C API provided by the XS JavaScript engine so that you can integrate C code into your JavaScript projects (or JavaScript code into your C projects!).

Here are three common reasons for using use native code in your project:
  • Performance – High-level languages, including JavaScript, can’t ...

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.
Start your free trial

You might also like

Gatsby JS: Build PWA Blog with GraphQL, React and WordPress

Gatsby JS: Build PWA Blog with GraphQL, React and WordPress

Rangel Stoilov
Cocoa Programming for OS X: The Big Nerd Ranch Guide

Cocoa Programming for OS X: The Big Nerd Ranch Guide

Aaron Hillegass, Adam Preble, Nate Chandler

Publisher Resources

ISBN: 9781484250709Purchase LinkPublisher Website