Skip to content
HTTP example program for JS on mbed
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
native_extras
.gitignore
Gulpfile.js
LICENSE
README.md
main.js
package.json

README.md

mbed-js-http-example

Example of doing HTTP calls using mbed-js-http for JavaScript on mbed.

Build

  1. Configure your connectivity method in native_extras/mbed_lib.json (more info).
  2. Run npm install.
  3. Run gulp --target=YOUR_TARGET_NAME.
    • To find your target name, look at the platforms page for your development board.
  4. Copy the mbedos5.hex or mbedos5.bin file from build/out/YOUR_TARGET_NAME onto your development board.
  5. Attach a serial monitor (baud rate 115,200) to your device to see the output.

HTTPS?

The underlying library supports HTTPS, but it's not implemented in mbed-js-http yet - mainly because the extra memory requirements for the TLS library. But should not be too hard.

You can’t perform that action at this time.