ESP uses webserver for local control

Because using cloud services is sometimes unreliable, offline control is important. This article uses webserver to implement local web page control. In this way, there is no need to develop a separate APP, and it can be controlled with a browser. All tests in this article are based on ESP32. 8266 has not been tested. […]

WebServer parsing timer Timer class (1)

Premise:This WebServer version is not the one on Niuke.com, this version is https://github.com/linyacool/WebServer.git, using the Reactor model At the same time, this is my personal understanding and personal analysis when I was studying, so my analysis may be wrong, and I welcome corrections and exchanges. The main function of the Timer class 1.TimerNode uses the […]

Gateway error Unable to start ServletWebServerApplicationContext due to missing ServletWebServer

Problem error: Error 1: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name ‘conversionServicePostProcessor’ defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Cannot register bean definition [Root bean: class [org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=conversionServicePostProcessor; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]] for bean \ ‘conversionServicePostProcessor’: There is already [Root bean: class [org.springframework.security.config.annotation.web.reactive.WebFluxSecurityConfiguration]; scope=; abstract=false; […]

WebServer industrial data collection system based on modbus

1. Introduction In the field of industrial automation, data collection is a very important part. Through data collection, storage and display of industrial equipment, the production process can be monitored and optimized to improve production efficiency and quality. As a communication protocol, Modbus is widely used for data transmission in industrial control systems. Therefore, industrial […]

Understanding TinyWebServer from scratch

The best way to understand a project is to start from the main function! #include “config.h” // argc: the number of command line parameters argv: the value of the command line parameter int main(int argc, char *argv[]) { //Database information that needs to be modified, login name, password, library name string user = “root”; string […]

(1) Environment configuration and operation of TinyWebServer

C++ lightweight web server under Linux, project source: TinyWebServer Configuring the environment (preparing for downloading code, compiling and running) 1. Install VMware VMware official website Select the product and click Workstation Pro Download the trial version (note: you need to register your own account on the official website) After the download is complete, double-click the […]

org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Exception analysis org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:162) ~[spring-boot-2.4.2.jar:2.4.2] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:582) ~[spring-context-5.3.3.jar:5.3.3] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.2.jar:2.4.2] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) [spring-boot-2.4.2.jar:2.4.2] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.4.2.jar:2.4.2] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.2.jar:2.4.2] at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.2.jar:2.4.2] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1311) [spring-boot-2.4.2.jar:2.4.2] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) [spring-boot-2.4.2.jar:2.4.2] at com.myself.study.SpringDemoApplication.main(SpringDemoApplication.java:13) [classes/:na] Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat […]

4. Log writing – TinyWebServer

Log writing – TinyWebServer 1. Foreword I have finished writing the lock class in the last issue. This issue is about diary writing. For logs, you need to understand several basic concepts to better understand and write logs. What is a log? What are the commonly used log levels? What is the basic format of […]

The fourth part of the project (Smart Classroom), page interaction function, WebServer establishment and use,

one. Page idea 1.Title bar Big title: Smart Classroom Management System Subtitles: lights, alarms, fans, temperature, humidity, light 2.Style design background settings. Font settings (font size, format, color) 3.Navigation bar 6 navigation bar tabs: 3 sensors, 3 controls Each time you click the navigation bar label: the page will be displayed accordingly. 4. Front-end and […]

NUC980webServer development

Table of Contents 1.RTL8189FTV driver transplantation 2. Transplantation of wifi configuration tool hostapd 1.openssl-1.0.2r cross compilation 2.libnl-3.2.25.tar.gz cross compilation 3.hostapd-2.9.tar.gz cross compilation 4. Migrate related tools to the development board 1.RTL8189FTV driver transplantation 1. Place the driver file source code in the drivers/net/wireless/realtek/rtlwifi/ directory of the Linux source code, and rename the driver file source […]