Skip to content

janjongboom/mbed-js-http-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

HTTP example program for JS on mbed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published