esp8266 websocket

ESP32 Arduino: Websocket client
https://www.colabug.com/1800151.html

examples/smart_config: Smart Config 相关的代码示例。
examples/spiffs_test: SPIFFS 相关的代码示例。
examples/websocket_demo: WebSocket 相关的代码示例

https://github.com/Links2004
https://github.com/Links2004/arduinoWebSockets

https://www.instructables.com/id/Esp8266Websockets-RGB-LED-controller/

16 元买的 ESP8266 的开发板,安装上 MicroPython。加上一个红外线 LED,一个电阻,一个温度传感器 DTH22。然后设置成 WebSocket 服务器,就可以用手机查看家里的温度,控制空调的开关了。

遥控器的信号是使用 TSOP38238 解调,然后用 30 元的逻辑分析仪捕捉。

https://github.com/ruoyu0088/esp8266_ir

建议换 ESP32,贵不了几块钱,,性能更高、内存更大,,可玩儿性更高

资料1:(很好)

https://diyprojects.io/websocket-communication-esp8266-arduino-python-test-ws4py-library-raspberry-pi/

Installing the Websocket library for ESP8266 on the Aduino IDE
By doing a search on the websocket keyword from the library manager, there are several libraries compatible with ESP8266 modules. However, I advise you to use the bookstore developed by Markus Sattler. It can start a server or turn the ESP8266 into a Websocket client. It is available on GitHub here. It is compatible with the following cards (damage, it is not compatible with the ESP32):

https://github.com/Links2004/arduinoWebSockets

arduino IDE 1.8.5 安装

这里写图片描述

这里写图片描述

https://github.com/Links2004/arduinoWebSockets

https://www.teachmemicro.com/web-server-nodemcu-websocket/

资料2

https://tttapa.github.io/ESP8266/Chap14%20-%20WebSocket.html

websocket 服务器

http://demos.kaazing.com/echo/
http://websocket.org/echo.html
https://techtutorialsx.com/2017/11/01/esp32-arduino-websocket-client/ —- 用的另外一个websocket库

利用whistle调试WebSocket和Socket请求
https://cloud.tencent.com/developer/article/1008906

资料3 MQTT CloudMQTT

ESP8266 PROGRAMMING FOR CLOUD MQTT USING PUBSUBCLIENT- PART 3

Open up the serial monitor.

Upload the code onto ESP8266.

You can now see the logs, for the Wifi connection, MQTT connection and Temperature sensor values.

You can view the data online using the WebSocket console.

资料4 RTOS SDK

https://www.espressif.com/en/support/explore/get-started/esp8266/getting-started-guide

https://github.com/espressif/ESP8266_RTOS_SDK
examples/smart_config: Smart Config-related sample codes
examples/spiffs_test: SPIFFS-related sample codes.
examples/websocket_demo: WebSocket-related sample codes.
https://github.com/espressif/ESP8266_RTOS_SDK/releases
ESP8266_RTOS_SDK Release 2.0.0

ws4py

https://ws4py.readthedocs.io/en/latest/

python websocket例子

https://github.com/morrissinger/ESP8266-Websocket
https://github.com/Links2004/arduinoWebSockets/tree/master/tests
https://pypi.org/project/websockets/
https://github.com/danni/uwebsockets
https://github.com/danni/uwebsockets/tree/esp8266/examplesserver can use
https://github.com/dpallot/simple-websocket-server
https://websockets.readthedocs.io/en/stable/intro.html

websocket 演示

http://www.websocket.org/echo.html

WebSocket :用WebSocket实现推送你必须考虑的几个问题

https://blog.csdn.net/shangmingtao/article/details/75810099
结论:由此也证明了[问题探索]中的开启应用层心跳是非常有必要的.不然连接超过一定时间后自动断开,且心跳推荐时间为4分半,用以适配所有浏览器.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值