TOP Contributors

  1. MIKROE (2649 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136503 times)
  2. FAT32 Library (69710 times)
  3. Network Ethernet Library (55813 times)
  4. USB Device Library (46153 times)
  5. Network WiFi Library (41792 times)
  6. FT800 Library (40974 times)
  7. GSM click (28918 times)
  8. PID Library (26380 times)
  9. mikroSDK (26267 times)
  10. microSD click (25291 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

WIFI HTTP + javaScript file loading from microSD card (Hello world! example)

Rating:

0

Author: Wilson A. Gan Cuba

Last Updated: 2013-05-08

Package Version: 1.0.0.2

Example: 1.0.0.0

Category: WiFi

Downloaded: 962 times

Not followed.

License: MIT license  

The intent of this example is to show how to merge the mikroElektronica's wifi http demo with the microSD demo so that the web page can grow bigger due to the ROM space of the MCU can be saved utilizing the microSD as storage of external files.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "WIFI HTTP + javaScript file loading from microSD card (Hello world! example)" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "WIFI HTTP + javaScript file loading from microSD card (Hello world! example)" changes.

Do you want to report abuse regarding "WIFI HTTP + javaScript file loading from microSD card (Hello world! example)".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

The intent of this example is to show how to merge the mikroElektronica's wifi http demo with the microSD demo so that the web page can grow bigger due to the ROM space of the MCU can be saved utilizing the microSD as storage of external files.

The page on this example will load a variable (hello) contained in the file testing.js in the microSD card with the content: "Hello World!".



Example

Example

Final result using Mozilla firefox with firebug.

View full image
Wifi plus and mikroSD click boards

Wifi plus and mikroSD click boards

Boards used

View full image

[version 1.0.0.1]

1-External file dynamically generated URL to avoid browser caching, although caching may be sometimes desirable (but not for testing purposes, because instant code change is required).

2-Fixed bug that produced external file content incorrect reading.

Lenguaje español

La intención de este ejemplo es mostrar cómo combinar la demostración WIFI HTTP con la demostración microSD de mikroElektronika para que la aplicacion  web pueda escalar debido a que el espacio de la memoria ROM del MCU se puede ahorrar utilizando la tarjeta microSD como almacenamiento de archivos externos.

La página en este ejemplo carga una variable (hello) contenida en el archivo testing.js almacenado en la tarjeta microSD con el contenido: "Hello World!".


ALSO FROM THIS AUTHOR

WIFI HTTP + image loading from PIC ROM

0

Simple example to demonstrate how an image (or probably almost any binary file) can be encoded in base64 format and loaded into the PIC ROM as long as the ROM space allows it.

[Learn More]

WIFI HTTP + multi file loading from PIC ROM ( .html, .css, .js)

0

The purpose of this project is to demonstrate in a simplified manner, how add multiple files to Mikroelektronika's WIFI HTTP demo, which will be stored in the PIC ROM but could be requested through the main web page as external files, all to be included in the same web page.

[Learn More]

Ajax WIFI HTTP demo with ROM storage

0

Feel the power of Ajax. Take a look to the EXAMPLE BLOG, you'll find there a video demonstrating, how it works. Also as this was mostly JavaScript programming, adapting the code to other compilers should not be too difficult task. Release date: April, 08 2013

[Learn More]