GithubHelp home page GithubHelp logo

captainigloo / sparkcore-local-http-server-rest-json Goto Github PK

View Code? Open in Web Editor NEW
22.0 8.0 13.0 638 KB

Local HTTP server with REST and JSON for Sparkcore

License: GNU Affero General Public License v3.0

C++ 83.47% C 16.53%

sparkcore-local-http-server-rest-json's Introduction

HTTP server (REST & JSON) on Spark core

alt text

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
  • SparkTime.h
  • SparkTime.cpp

Thanks to :

Projet "spark-Web-Tinker.ino"

Installation

Add file

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
  • SparkTime.h
  • SparkTime.cpp

Remerciements à :

Projet "spark-Web-Tinker.ino"

Installation

Add file

Old GUI version :

Aller sur Youtube

Aller sur Youtube

Youtube video 1 Youtube video 2

sparkcore-local-http-server-rest-json's People

Contributors

captainigloo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sparkcore-local-http-server-rest-json's Issues

Can't flash with Spark Web IDE

I have inserted all the files in the Spark Web IDE.
Verification passed.

It says:
"Flash successful! Please wait a moment while your Core is updated...
Ready."

But nothing happend on the Core .
(other Programms like LED FLASHING Example are working (can be flashed) this way)

Can somebody help or confirm?!

app.ino file?

pls advice what should i do on the app.ino file?

include "slre.h"

void setup() {
}
void loop() {
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.