Skip to content

cnc4less/ESP32_SD_EasyWebSocket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32_SD_EasyWebSocket BETA 1.51.1

Simple library for WebSocket communication with ESP-WROOM-32(ESP32) and smartphone browser.
This requires the Arduino core for ESP32 library.
https://github.com/espressif/arduino-esp32
This use SD card (SPI).

My Blog: https://www.mgo-tec.com

Change log:

(1.51.1)
When reading external HTML file of UTF-8 format, we have fixed the problem of not reading UTF-8 Japanese kanji.
Incidentally, please note that files saved in Shift_JIS format can not be used.
Be sure to use a text file saved in UTF-8 format.

(1.51)
Significantly improved WebSocket handshake function structure.
By adding the EWS_HandShake_main function and putting it in the local function, global variable area and SRAM can be reduced.
Also changed the sample sketch.
Also change the sketch of My blog posts.
https://www.mgo-tec.com/blog-entry-esp32-devkitc-wroom32-wifi-websocket-cds.html
   Include WiFiClientSecure.h and add an https (SSL) article acquisition function.

-NEW Class-
EWS_HandShake_main
Get_Http_Req_Status
EWS_ESP32_SendRate
EWS_https_Web_Get
(Attention !: Consumes a lot of memory.)

-Fix -
Changed ESP8266 character function to ESP32.

(1.50)
Changed for ESP32 based on SD_EasyWebSocket BETA 1.47(for ESP8266). I used the sha1 source file (License: Public Domain) made by Steve Reid. Thank you Steve Reid. Add String res_html variable of WS_Dev_AutoLIP_HandShake function to seven.
Added EWS_ESP32_SendRate function to adjust transfer rate of data sent from ESP32.

【更新履歴】(Japanese)

(1.51.1)
UTF-8形式の外部HTMLファイルを読み込む時に、UTF-8日本語漢字を読み込まない不具合を修正しました。
因みに、Shift_JIS形式で保存されたファイルは使えませんのでご注意ください。
必ず UTF-8形式で保存したテキストファイルを使用してください。

(1.51)
WebSocket ハンドシェイク関数構造を大幅改良。
EWS_HandShake_main関数を追加し、それをローカル関数内に置くことによって、グローバル変数領域やSRAMを削減可能。
サンプルスケッチも変更しました。
ブログ記事のスケッチも変更。
https://www.mgo-tec.com/blog-entry-esp32-devkitc-wroom32-wifi-websocket-cds.html

WiFiClientSecure.hをインクルードして、https ( SSL )記事取得関数を追加

-追加関数-
EWS_HandShake_main
Get_Http_Req_Status
EWS_ESP32_SendRate EWS_https_Web_Get
(この関数はメモリを多く消費するので注意)

-修正- ESP8266 という文字の付いた関数を ESP32 に変更

(1.50)
SD_EasyWebSocket BETA 1.47(ESP8266用)を基に ESP32用に移植。
Steve Reidさん作のsha1ソースファイル(License:Public Domain)を使用させていただきました。 Steve Reidさん ありがとうございます。 WS_Dev_AutoLIP_HandShake関数のString res_html変数を7つにしました。 ESP32から送信するデータの転送レートを調節するための、EWS_ESP32_SendRate関数を追加しました。

Credits and license

*Licensed under the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1

Copyright (c) 2017 Mgo-tec
This library improvement collaborator is Mr.Visyeii.
Part of WiFiServer.h(for ESP8266) library modified.

This library is used by the Arduino IDE(Tested in ver1.8.2).

Reference Blog --> https://www.mgo-tec.com

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Reference LGPL-2.1 license statement --> https://opensource.org/licenses/LGPL-2.1

WiFi.h - Included WiFi library for esp32 Based on WiFi.h from Arduino WiFi shield library. Copyright (c) 2011-2014 Arduino. All right reserved. Modified by Ivan Grokhotkov, December 2014 Licensed under the LGPL-2.1

WiFiClientSecure.h Copyright (c) 2011 Adrian McEwen. All right reserved. Additions Copyright (C) 2017 Evandro Luis Copercini. Licensed under the LGPL-2.1

sha1.h - Included SHA-1 library.
author: Steve Reid
from: http://www.virtualbox.org/svn/vbox/trunk/src/recompiler/tests/sha1.c
100% Public Domain

SD.h - Included SD card library for esp32
Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
Licensed under the Apache License, Version 2.0 (the "License");

Reference Apache License --> http://www.apache.org/licenses/LICENSE-2.0

My Blog:

Other usage is Japanese, please visit my blog.
https://www.mgo-tec.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.8%
  • C 1.2%