Github repo
Demo video
Demo video
Github repo
Github repo
Github repo
Photos
About
HTTP server (REST & JSON) on Spark core
EN : Local HTTP server (REST & JSON) for Sparkcore
This project implement a Http server on Sparkcore itself. Once compiled into the Web IDE, the server will be available at http://IP-SPARKCORE (port 80 by default)
Common files of projects :
- slre.h
- slre.cpp
- HttpResponse.h
- HttpResponse.cpp
- HttpRequest.h
- HttpRequest.cpp
- http_parser.h
- http_parser.cpp
Thanks to :
- SLRE: Super Light Regular Expression library
- Marcussacapuces91 Github / SparkCore-RESTserver
- Joyent Github/ http-parser
Projects
- Project 1 : spark-Web-Tinker.ino
- Project 2 : spark-Web-Compas.ino
Installation
- Connect the Spark Core to your wifi
- Deploy the firmware using the Spark Cloud
- How add files in project :
FR : Serveur HTTP REST et JSON pour Spark Core.
Ce projet permet de mettre en oeuvre un serveur sur le Spark core lui-même. Un fois compilé dans le Web IDE, le serveur sera accessible à l'adresse http://IP-SPARKCORE (port :80 par défaut). Ce projet est un exemple permettant d'envisager d'autres projet.
Fichiers communs des projets (Rappel .h = fichier d'entête, .cpp = fichier de définition [Sources]) :
- slre.h :
- slre.cpp :
- HttpResponse.h :
- HttpResponse.cpp :
- HttpRequest.h :
- HttpRequest.cpp :
- http_parser.h :
- http_parser.cpp :
Remerciements à :
- SLRE: Super Light Regular Expression library
- Marcussacapuces91 Github / SparkCore-RESTserver
- Joyent Github/ http-parser
Projets
- Projet 1 : spark-Web-Tinker.ino - Ce projet permet de contrôler D0-D7 [HIGH|LOW] soit par l'interface web, soit en requête HTTP de forme http://IP-Sparkcore/D0/on|off.
- Projet 2 : spark-Web-Compas.ino
Installation
- Connecter le Spark Core à votre Wifi
- Déployer le firmware depuis le Web IDE Spark Cloud
- Comment ajouter les fichiers dans le projet :
Comments