Giter Site home page Giter Site logo

realtimelogic / minnowserver Goto Github PK

View Code? Open in Web Editor NEW
311.0 311.0 53.0 355 KB

A super small and fast embedded HTTP(S) WebSocket server

Home Page: https://realtimelogic.com/products/sharkssl/minnow-server/

License: Other

Makefile 0.67% C 84.88% CSS 4.11% HTML 1.92% JavaScript 7.60% Common Lisp 0.82%
embedded http iot websocket-server websockets

minnowserver's People

Contributors

rtl-pub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minnowserver's Issues

STM32F103C8 Webserver Taking Serial WiFi input from ESP8266 AT Command

I am looking for a webserver library to be used for STM32F103C8 under Arduino platform. I have had it serially communicating with ESP8266/ESP-01S via Serial2. I tested by calling its IP address and there was http text going into Serial2 like this.

+IPD,0,366:GET /test/gpio?sensitivity=2.2 HTTP/1.1
Host: 192.168.1.185
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

There are a few resources on the internet write code to take the above further but I think it would be better to have a proper library for that. What I learnt was we would extract uri/url from GET and process accordingly.

I have looked into Arduino's ESP8266WebServer but it's way to too complicated for me. The other resource https://github.com/khoih-prog/ESP8266_AT_WebServer seems to good but somehow didn't work with incomplete code or errors on some memcpy.

So essentially I wonder if your webserver could be adopted for my work. I am no expert in webserver but just know some basic coding. I still have no idea how those serial text will be fed to a webserver library.

make: *** No rule to make target 'MinnowServer/example/src/main.c', needed by 'build/program.a'. Stop.

make: *** No rule to make target 'MinnowServer/example/src/main.c', needed by 'build/program.a'. Stop.

After setting up the SharkSSL IDE and running the following commands I get the error above.

Navigate to examples directory

cd ESP/esp-open-rtos/examples/
#Put the MinnowServer, the example, and JSON lib in the ms directory.
mkdir ms
cd ms

Note that we do not need JSON and SMQ since these two componets are included in the SharkSSL IDE.

git clone https://github.com/RealTimeLogic/MinnowServer.git

Navigate to the architecture directory

cd MinnowServer/doc/arch/

Copy the two required files. All other files are included in the ESP8266 SharkSSL delivery

cp Makefile MinnowHwIntf.c ../../../

The following enables compiling from withing the web IDE

chmod +x ms.sh; mv ms.sh ~/ESP/

Navigate to the 'host build' make directory

cd ../../example/make/

Amalgamate and compress www -> creates index.c

make packwww

cd to the root of the example

cd ~/ESP/esp-open-rtos/examples/ms

Build example and upload to the connected ESP8266

make test FLASH_MODE=dio ESPPORT=/dev/ttyUSB0

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.